feat: init commit
This commit is contained in:
commit
0289360eb6
16 changed files with 449 additions and 0 deletions
27
templates/nginx-hooks.conf.j2
Normal file
27
templates/nginx-hooks.conf.j2
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
server {
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
|
||||
server_name {{ cuyper__hostname }};
|
||||
access_log /var/log/nginx/{{ cuyper__hostname }}.access.log;
|
||||
error_log /var/log/nginx/{{ cuyper__hostname }}.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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue