mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01:00
rename environment variable to IMMICH_API_URL_EXTERNAL
This commit is contained in:
parent
b9dd39e08b
commit
5eebc03fde
5 changed files with 8 additions and 8 deletions
|
@ -78,20 +78,20 @@ IMMICH_SERVER_URL=http://immich-server:3001
|
|||
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
|
||||
|
||||
####################################################################################
|
||||
# Alternative Public Server Address - Optional
|
||||
# Alternative API's External Address - Optional
|
||||
#
|
||||
# This is an advanced feature used to control the public server endpoint returned to clients during Well-known discovery.
|
||||
# You should only use this if the API server is exposed publicly via a custom host/path.
|
||||
# Examples: http://localhost:3001, http://immich-api.example.com, etc
|
||||
####################################################################################
|
||||
|
||||
IMMICH_SERVER_PUBLIC_URL=http://localhost:3001
|
||||
IMMICH_API_URL_EXTERNAL=http://localhost:3001
|
||||
|
||||
####################################################################################
|
||||
# API Cors Allowed Origins - Optional
|
||||
#
|
||||
# This is required if the API is served from a different domain than the website.
|
||||
# For example, if IMMICH_SERVER_PUBLIC_URL is set to a full URL.
|
||||
# For example, if IMMICH_API_URL_EXTERNAL is set to a full URL.
|
||||
####################################################################################
|
||||
|
||||
ALLOW_CORS_ORIGIN=http://localhost:2283
|
|
@ -1,4 +1,4 @@
|
|||
version: '3.8'
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
immich-server:
|
||||
|
@ -76,7 +76,7 @@ services:
|
|||
environment:
|
||||
# Rename these values for svelte public interface
|
||||
- PUBLIC_IMMICH_SERVER_URL=${IMMICH_SERVER_URL}
|
||||
- PUBLIC_IMMICH_SERVER_PUBLIC_URL=${IMMICH_SERVER_PUBLIC_URL}
|
||||
- PUBLIC_IMMICH_API_URL_EXTERNAL=${IMMICH_API_URL_EXTERNAL}
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 24678:24678
|
||||
|
|
|
@ -54,7 +54,7 @@ services:
|
|||
environment:
|
||||
# Rename these values for svelte public interface
|
||||
- PUBLIC_IMMICH_SERVER_URL=${IMMICH_SERVER_URL}
|
||||
- PUBLIC_IMMICH_SERVER_PUBLIC_URL=${IMMICH_SERVER_PUBLIC_URL}
|
||||
- PUBLIC_IMMICH_API_URL_EXTERNAL=${IMMICH_API_URL_EXTERNAL}
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
|
|
|
@ -54,7 +54,7 @@ services:
|
|||
environment:
|
||||
# Rename these values for svelte public interface
|
||||
- PUBLIC_IMMICH_SERVER_URL=${IMMICH_SERVER_URL}
|
||||
- PUBLIC_IMMICH_SERVER_PUBLIC_URL=${IMMICH_SERVER_PUBLIC_URL}
|
||||
- PUBLIC_IMMICH_API_URL_EXTERNAL=${IMMICH_API_URL_EXTERNAL}
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
|
|
|
@ -62,7 +62,7 @@ class ImmichApi {
|
|||
|
||||
// Browser side (public) API client
|
||||
export const api = new ImmichApi();
|
||||
api.setBaseUrl(env.PUBLIC_IMMICH_SERVER_PUBLIC_URL || '/api');
|
||||
api.setBaseUrl(env.PUBLIC_IMMICH_API_URL_EXTERNAL || '/api');
|
||||
|
||||
// Server side API client
|
||||
export const serverApi = new ImmichApi();
|
||||
|
|
Loading…
Reference in a new issue