Create gitea.subfolder.conf.sample (#42)

Create gitea.subfolder.conf.sample
This commit is contained in:
j0nnymoe 2019-05-26 21:34:12 +01:00 committed by GitHub
commit 184472bf2a
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;
}