27 lines
No EOL
865 B
Django/Jinja
27 lines
No EOL
865 B
Django/Jinja
server {
|
|
listen [::]:80;
|
|
listen 80;
|
|
|
|
server_name {{ cuyper__dns_domain }};
|
|
access_log /var/log/nginx/{{ cuyper__dns_domain }}.access.log;
|
|
error_log /var/log/nginx/{{ cuyper__dns_domain }}.error.log;
|
|
|
|
client_max_body_size 128M;
|
|
|
|
location /hooks/ {
|
|
proxy_pass http://localhost:3000/;
|
|
proxy_set_header Host $http_host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
location /portainer/ {
|
|
proxy_pass http://portainer:9000/;
|
|
proxy_set_header Host $http_host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
} |