mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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:
parent
66640ebfeb
commit
f6aba0f9ec
9 changed files with 65 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue