mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-07 05:21:31 -07:00
Create gitea.subfolder.conf.sample (#42)
Create gitea.subfolder.conf.sample
This commit is contained in:
commit
184472bf2a
1 changed files with 17 additions and 0 deletions
17
gitea.subfolder.conf.sample
Normal file
17
gitea.subfolder.conf.sample
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue