- Add root Dockerfile: node build → copy dist into Go embed path → distroless binary - Update docker-compose: one service (api on :9050), DB renamed ralph→pamietnik - Remove references to RALPH/reisejournal across all docs and configs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
884 B
Nginx Configuration File
39 lines
884 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
# API und Auth-Endpunkte zum Backend proxieren
|
|
location /healthz {
|
|
proxy_pass http://api:8080;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /readyz {
|
|
proxy_pass http://api:8080;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /v1/ {
|
|
proxy_pass http://api:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /login {
|
|
proxy_pass http://api:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /logout {
|
|
proxy_pass http://api:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# SPA: alle anderen Routen auf index.html
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|