2022-10-01 16:03:08

This commit is contained in:
henk
2022-10-01 16:03:08 +02:00
parent ae779737a9
commit cf72c2ad26
4 changed files with 192 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Gitea config
# destination ip is aangepast
server {
#listen 443 ssl http2;
# if you need IPv6:
listen [::]:443 ssl http2;
server_name git.pg0h.nl www.pg0h.nl;
access_log /var/log/nginx/gitpg0h-access.log combined;
error_log /var/log/nginx/gitpg0h-error.log info;
http2_push_preload on; # Enable HTTP/2 Server Push
ssl_certificate /etc/letsencrypt/live/pg0h.nl-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pg0h.nl-0001/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams2.pem;
ssl_stapling on;
ssl_stapling_verify on;
location / {
proxy_pass http://172.16.69.69:3000;
client_max_body_size 100g;
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-Proto $scheme;
}
}