diff options
author | 2021-11-23 11:33:26 -0500 | |
---|---|---|
committer | 2021-11-23 11:33:26 -0500 | |
commit | 191b062634fde2316f66ad5253259da042379f81 (patch) | |
tree | 5fc279c8e6802cf500a6f0117051c04d285816bc /app/Controllers | |
parent | Removed APP_URL variable. (diff) | |
download | ferdium-server-191b062634fde2316f66ad5253259da042379f81.tar.gz ferdium-server-191b062634fde2316f66ad5253259da042379f81.tar.zst ferdium-server-191b062634fde2316f66ad5253259da042379f81.zip |
Replace APP_URL with EXTERNAL_DOMAIN
To fix problems with missing APP_URL variable. APP_URL=http://${HOST}:${PORT} but APP_URL being set with http as default is also causing problems for some users.
Diffstat (limited to 'app/Controllers')
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index ef8b168..3ce6acd 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -98,7 +98,7 @@ class ServiceController { | |||
98 | workspaces: [], | 98 | workspaces: [], |
99 | ...settings, | 99 | ...settings, |
100 | iconUrl: settings.iconId | 100 | iconUrl: settings.iconId |
101 | ? `${Env.get('APP_URL')}/v1/icon/${settings.iconId}` | 101 | ? `${Env.get('EXTERNAL_DOMAIN')}/v1/icon/${settings.iconId}` |
102 | : null, | 102 | : null, |
103 | id: service.serviceId, | 103 | id: service.serviceId, |
104 | name: service.name, | 104 | name: service.name, |
@@ -176,7 +176,7 @@ class ServiceController { | |||
176 | id, | 176 | id, |
177 | name: service.name, | 177 | name: service.name, |
178 | ...newSettings, | 178 | ...newSettings, |
179 | iconUrl: `${Env.get('APP_URL')}/v1/icon/${newSettings.iconId}`, | 179 | iconUrl: `${Env.get('EXTERNAL_DOMAIN')}/v1/icon/${newSettings.iconId}`, |
180 | userId: auth.user.id, | 180 | userId: auth.user.id, |
181 | }, | 181 | }, |
182 | status: ['updated'], | 182 | status: ['updated'], |
@@ -223,7 +223,7 @@ class ServiceController { | |||
223 | id, | 223 | id, |
224 | name: service.name, | 224 | name: service.name, |
225 | ...settings, | 225 | ...settings, |
226 | iconUrl: `${Env.get('APP_URL')}/v1/icon/${settings.iconId}`, | 226 | iconUrl: `${Env.get('EXTERNAL_DOMAIN')}/v1/icon/${settings.iconId}`, |
227 | userId: auth.user.id, | 227 | userId: auth.user.id, |
228 | }, | 228 | }, |
229 | status: ['updated'], | 229 | status: ['updated'], |
@@ -293,7 +293,7 @@ class ServiceController { | |||
293 | workspaces: [], | 293 | workspaces: [], |
294 | ...settings, | 294 | ...settings, |
295 | iconUrl: settings.iconId | 295 | iconUrl: settings.iconId |
296 | ? `${Env.get('APP_URL')}/v1/icon/${settings.iconId}` | 296 | ? `${Env.get('EXTERNAL_DOMAIN')}/v1/icon/${settings.iconId}` |
297 | : null, | 297 | : null, |
298 | id: service.serviceId, | 298 | id: service.serviceId, |
299 | name: service.name, | 299 | name: service.name, |