all working services

This commit is contained in:
2020-10-04 20:57:03 -05:00
commit f14b2aefc4
5 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
server {
listen 80;
listen [::]:80;
server_name git.gminus2.duckdns.org;
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.gminus2.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 10G;
location / {
proxy_pass http://gitea:3000;
proxy_redirect off;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
}