Added woodpecker nginx conf

woodpecker
Jef Roosens 2021-04-23 23:31:10 +02:00
parent bc6ae2bea8
commit 2e27fb0239
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 28 additions and 0 deletions

View File

@ -63,3 +63,9 @@ GITEA_HOST=gitea_app_1
PODGRAB_DOMAIN=
### Hostname
PODGRAB_HOST=podgrab_app_1
## Woodpecker
### Domain name
WOODPECKER_DOMAIN=
### Hostname
WOODPECKER_HOST=woodpecker_app_1

View File

@ -0,0 +1,22 @@
server {
# SSL Key locations
ssl_certificate /etc/letsencrypt/live/${WOODPECKER_DOMAIN}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${WOODPECKER_DOMAIN}/privkey.pem;
listen ${HTTPS_PORT} ssl;
listen [::]:${HTTPS_PORT} ssl;
server_name ${WOODPECKER_DOMAIN};
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_pass http://${WOODPECKER_HOST}:8000;
proxy_redirect off;
proxy_http_version 1.1;
proxy_buffering off;
chunked_transfer_encoding off;
}
}