42 lines
No EOL
1.2 KiB
Django/Jinja
42 lines
No EOL
1.2 KiB
Django/Jinja
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name {{ cuyper__dns_domain }};
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
http2 on;
|
|
|
|
server_name {{ cuyper__dns_domain }};
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ cuyper__dns_domain }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ cuyper__dns_domain }}/privkey.pem;
|
|
|
|
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;
|
|
|
|
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;
|
|
}
|
|
} |