smst-wp-site/swag/nginx/proxy-confs/gitea.subfolder.conf.sample

24 lines
710 B
Plaintext
Raw Normal View History

2023-05-24 01:43:13 +00:00
## Version 2023/02/05
# make sure that your gitea container is named gitea
# make sure that gitea is set to work with the base url /gitea/
# 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;
include /config/nginx/resolver.conf;
set $upstream_app gitea;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /gitea(.*) $1 break;
}