43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
upstream woodpecker {
|
|
server 127.0.0.1:3002 fail_timeout=0;
|
|
}
|
|
|
|
server {
|
|
#listen 80; # IPv4 HTTP
|
|
listen 443 ssl http2; # uncomment to enable IPv4 HTTPS + HTTP/2
|
|
#listen [::]:80; # uncomment to enable IPv6 HTTP
|
|
#listen [::]:443 ssl http2; # uncomment to enable IPv6 HTTPS + HTTP/2
|
|
server_name woodpecker.git.eax.app;
|
|
|
|
access_log /var/log/woodpecker/nginx_access.log;
|
|
error_log /var/log/woodpecker/nginx_error.log;
|
|
|
|
#ssl_certificate ssl/example.com.crt;
|
|
#ssl_certificate_key ssl/example.com.key;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/git.eax.app/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/git.eax.app/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/git.eax.app/chain.pem;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_pass http://woodpecker;
|
|
proxy_redirect off;
|
|
proxy_http_version 1.1;
|
|
proxy_buffering off;
|
|
chunked_transfer_encoding off;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name woodpecker.git.eax.app;
|
|
include nginxconfig.io/letsencrypt.conf;
|
|
|
|
location / {
|
|
return 301 https://woodpecker.git.eax.app$request_uri;
|
|
}
|
|
}
|