Skip to content
Snippets Groups Projects
Commit 67fd1435 authored by Miguel Angelo Salerno's avatar Miguel Angelo Salerno
Browse files

update nginx files

parent 1aa3725f
No related branches found
No related tags found
No related merge requests found
upstream caqvix {
server localhost:5070 fail_timeout=0;
}
upstream api_server {
server localhost:3003 fail_timeout=0;
}
server {
listen 80;
server_name caqvix.c3sl.ufpr.br www.caqvix.c3sl.ufpr.br;
return 301 https://caqvix.c3sl.ufpr.br$request_uri;
}
server {
listen 443 ssl;
server_name caqvix.c3sl.ufpr.br www.caqvix.c3sl.ufpr.br;
ssl_certificate /etc/ssl/certs/c3sl.pem;
ssl_certificate_key /etc/ssl/private/c3sl.pem;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://caqvix/;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://api_server;
proxy_read_timeout 600s;
}
}
......@@ -54,4 +54,3 @@ server {
proxy_pass http://mapfor/;
}
}
......@@ -20,7 +20,8 @@ server {
return 301 https://simcaqhom.c3sl.ufpr.br$request_uri;
# descomentar esses para rodar local (sem docker)
# root /home/simcaq/front-end/dist
# o nome da pasta foi renomeado
# root /home/simcaq/front-end-simcaq/dist
# index index.html index.htm;
}
......@@ -31,7 +32,8 @@ server {
ssl_certificate_key /etc/ssl/private/c3sl.pem;
# descomentar esses para rodar local (sem docker)
# root /home/simcaq/front-end/dist;
# o nome da pasta foi renomeado
# root /home/simcaq/front-end-simcaq/dist;
# index index.html index.htm;
# comentar todo esse location para rodar local (sem docker)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment