Set APP_DOMAIN to INTERNAL_IP:APP_PORT if unexposed

This commit is contained in:
Seth For Privacy 2022-09-09 16:52:50 -04:00
parent 39a824947d
commit 8eae068220
No known key found for this signature in database
GPG key ID: 6B9791C6214D1E57

View file

@ -110,7 +110,7 @@ export const generateEnvFile = (app: App) => {
envFile += `APP_DOMAIN=${app.domain}\n`;
envFile += `APP_PROTOCOL=https\n`;
} else {
envFile += `APP_DOMAIN=${configFile.port}:${InternalIp.v4()}\n`;
envFile += `APP_DOMAIN=${InternalIp.v4()}:${configFile.port}\n`;
}
writeFile(`/app-data/${app.id}/app.env`, envFile);