使用 Nginx 作为反向代理服务并将 Gitea 路由至一个子路径
server {
listen 80;
server_name git.example.com;
location /git/ { # Note: Trailing slash
proxy_pass http://localhost:3000/; # Note: Trailing slash
}
}
在Gitea配置文件中添加 [server] ROOT_URL = http://git.example.com/git/