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/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code