fix: availability of env variables

This commit is contained in:
Julian Krauser 2025-01-06 15:04:47 +01:00
parent fa45559127
commit f74c10d4aa
10 changed files with 78 additions and 10 deletions

View file

@ -31,10 +31,13 @@ services:
restart: unless-stopped
#environment:
# - SERVER_ADRESS=<backend_host> # wichtig: ohne https:// bzw http://
# - SERVERADRESS=<backend_host> # wichtig: ohne https:// bzw http:// und ohne pfad
# - IMPRINTLINK=https://mywebsite-imprint-url
# - PRIVACYLINK=https://mywebsite-privacy-url
# - CUSTOMLOGINMESSAGE=betrieben von xy
#volumes:
# - <volume|local path>/myfavicon.png:/app/public/favicon.png
# - <volume|local path>/mylogo.png:/app/public/logo.png
# - <volume|local path>/myfavicon.png:/usr/share/nginx/html/favicon.png
# - <volume|local path>/mylogo.png:/usr/share/nginx/html/Logo.png
```
Wenn keine Server-Adresse angegeben wird, wird versucht das Backend unter der URL des Frontends zu erreichen. Dazu muss das Backend auf der gleichen URL wie das Frontend laufen. Zur Unterscheidung von Frontend und Backend bei gleicher URL müssen alle Anfragen mit dem PathPrefix `/api` an das Backend weitergeleitet werden.