Create gitea.subfolder.conf.sample

This commit is contained in:
anoma 2019-05-26 10:44:31 +00:00 committed by GitHub
parent c1c15476da
commit 8f5116ae70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,17 @@
# 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_gitea gitea;
rewrite /gitea(.*) $1 break;
proxy_pass http://$upstream_gitea:3000;
}