Refactor handling of environment variables

This commit is contained in:
viktorstrate
2021-01-17 16:50:48 +01:00
parent 9098bf38d1
commit 107da91700
15 changed files with 105 additions and 41 deletions

View File

@@ -13,6 +13,9 @@ PHOTOVIEW_LISTEN_PORT=4001
PHOTOVIEW_API_ENDPOINT=http://localhost:4001/
PHOTOVIEW_UI_ENDPOINT=http://localhost:1234/
# Path where media should be cached, defaults to ./media_cache
# PHOTOVIEW_MEDIA_CACHE=./media_cache
# Set to 1 for the server to also serve the built static ui files
PHOTOVIEW_SERVE_UI=0
# When PHOTOVIEW_SERVE_UI is 1, PHOTOVIEW_PUBLIC_ENDPOINT is used instead of PHOTOVIEW_API_ENDPOINT and PHOTOVIEW_UI_ENDPOINT