feat(deployment) Allow overriding service host and ports with env variables (#930)

* Add proxy changes

* Add web changes

* Add microservices changes

* Add examples

* Add header comment to nginx config

* Use URLs instead of host and port
This commit is contained in:
Ian 2022-11-09 03:11:32 -08:00 committed by GitHub
parent 66640ebfeb
commit f6aba0f9ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 65 additions and 14 deletions

View file

@ -1,3 +1,4 @@
import { env } from '$env/dynamic/public';
import {
AlbumApi,
AssetApi,
@ -45,4 +46,5 @@ class ImmichApi {
export const api = new ImmichApi();
export const serverApi = new ImmichApi();
serverApi.setBaseUrl('http://immich-server:3001');
const immich_server_url = env.PUBLIC_IMMICH_SERVER_URL || 'http://immich-server:3001';
serverApi.setBaseUrl(immich_server_url);