2017-12-03 22:03:24 +01:00
|
|
|
server {
|
|
|
|
listen 8006 ssl http2;
|
|
|
|
listen [::]:8006 ssl http2;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/gnuhealth.access.log;
|
|
|
|
error_log /var/log/nginx/gnuhealth.error.log;
|
|
|
|
|
|
|
|
root /srv/gnuhealth/sao;
|
2017-12-08 11:27:01 +01:00
|
|
|
try_files $uri @gnuhealth;
|
2017-12-03 22:03:24 +01:00
|
|
|
|
2017-12-08 11:27:01 +01:00
|
|
|
location @gnuhealth {
|
2017-12-03 22:03:24 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2017-12-08 11:27:01 +01:00
|
|
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
2017-12-03 22:03:24 +01:00
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_pass http://127.0.0.1:8097;
|
|
|
|
}
|
|
|
|
}
|