cjvt-valency/nginx.conf

30 lines
584 B
Nginx Configuration File
Raw Normal View History

2019-05-05 13:50:48 +00:00
# frontend
2019-05-04 16:12:05 +00:00
server {
2019-05-05 13:50:48 +00:00
listen 80;
2019-05-04 16:12:05 +00:00
server_name _;
location / {
2019-05-05 13:50:48 +00:00
root /srv/dist;
index index.html index.htm;
}
2019-05-06 20:10:33 +00:00
location /home {
return 301 /;
}
2019-05-05 13:50:48 +00:00
}
# backend
server {
listen 8084;
server_name _;
location / {
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://backend_flask:8084;
2019-05-04 16:12:05 +00:00
}
2020-09-15 12:08:16 +00:00
}
https://vezljivostni.cjvt.si/api/* -> http://vezljivostni-host.cjvt.si:8084/api/*
https://vezljivostni.cjvt.si/* -> http://vezljivostni-host.cjvt.si:80/*