Include letsencrypt setup & add woodpecker nginx config
This commit is contained in:
parent
b5db9c3daf
commit
c9a68c6a3f
7 changed files with 88 additions and 1 deletions
29
templates/nginx/woodpecker.j2
Normal file
29
templates/nginx/woodpecker.j2
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
server {
|
||||
listen {{ https_port }} ssl;
|
||||
server_name {{ woodpecker_domain }};
|
||||
|
||||
include snippets/certificates.conf;
|
||||
include snippets/ssl-params.conf;
|
||||
|
||||
access_log /var/log/nginx/woodpecker.log;
|
||||
error_log /var/log/nginx/woodpecker.log;
|
||||
|
||||
location / {
|
||||
gzip off;
|
||||
|
||||
proxy_read_timeout 90;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
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_set_header X-Frame-Options SAMEORIGIN;
|
||||
|
||||
proxy_pass http://{{ woodpecker_ip }}:{{ woodpecker_port }};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue