Sistema de Informações Gerenciais do Interlegis
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
upstream sigi_app_server {
|
|
|
|
server unix:/var/run/sigi/sigi.sock fail_timeout=0;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name sigi01h.interlegis.leg.br;
|
|
|
|
|
|
|
|
client_max_body_size 4G;
|
|
|
|
|
|
|
|
access_log /var/log/sigi/sigi-access.log;
|
|
|
|
error_log /var/log/sigi/sigi-error.log;
|
|
|
|
|
|
|
|
location /static/ {
|
|
|
|
alias /srv/sigi/static/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /media/ {
|
|
|
|
alias /srv/sigi/media/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_redirect off;
|
|
|
|
if (!-f $request_filename) {
|
|
|
|
proxy_pass http://sigi_app_server;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|