Set APP_DOMAIN to INTERNAL_IP:APP_PORT if unexposed
This commit is contained in:
parent
1106b693c2
commit
39a824947d
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ export const generateEnvFile = (app: App) => {
|
|||
envFile += 'APP_EXPOSED=true\n';
|
||||
envFile += `APP_DOMAIN=${app.domain}\n`;
|
||||
envFile += `APP_PROTOCOL=https\n`;
|
||||
} else {
|
||||
envFile += `APP_DOMAIN=${configFile.port}:${InternalIp.v4()}\n`;
|
||||
}
|
||||
|
||||
writeFile(`/app-data/${app.id}/app.env`, envFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue