23 lines
605 B
Django/Jinja
23 lines
605 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
server {
|
|
listen {{ https_port }} ssl;
|
|
server_name {{ glitchtip_domain }};
|
|
|
|
include snippets/certificates.conf;
|
|
include snippets/ssl-params.conf;
|
|
|
|
access_log /var/log/nginx/glitchtip.log;
|
|
error_log /var/log/nginx/glitchtip.log;
|
|
|
|
client_max_body_size 40M;
|
|
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_pass http://{{ glitchtip_ip }}:{{ glitchtip_app_port }};
|
|
}
|
|
}
|