forked from linux/WebHosting
conf.d/it-strategy-dashboard.conf aktualisiert
redirect requests to the frontend and make backend reachable via /API
This commit is contained in:
@@ -11,7 +11,14 @@ server {
|
||||
ssl_certificate /etc/nginx/certs/it-strategy-dashboard.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/it-strategy-dashboard.psi.ch.key;
|
||||
|
||||
root /opt/webcontent/it-strategy-dashboard;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://it-strategy-dashboard-backend:8080;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
Reference in New Issue
Block a user