Adding auto-reload; updating subdomains; add proxy configuration files

This commit is contained in:
2021-09-24 14:42:24 +03:00
parent efeedb649f
commit 6f763726c0
28 changed files with 1348 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# The following parameters in /data/gitea/conf/app.ini should be edited to match your setup
# [server]
# SSH_DOMAIN = example.com:2222
# ROOT_URL = https://example.com/gitea/
# DOMAIN = example.com
location /gitea {
return 301 $scheme://$host/gitea/;
}
location ^~ /gitea/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app gitea;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /gitea(.*) $1 break;
}