我正在尝试将我的 gogs 的 url 从 localhost 更改为我的子域。
使用 NGINX。为 git 配置了我的子域。我的域名。然后将示例添加到 nginx.conf http 部分:
server {
listen 80;
server_name git.mydomain.com;
location / {
proxy_pass http://localhost:3000;
}
}
gogs/custom/app.ini:
[server]
DOMAIN = git.mydomain.com
HTTP_PORT = 3000
ROOT_URL = https://git.mydomain.com/
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
OFFLINE_MODE = false
但它仍然可以在http 协议上的地址https://git.mydomain.com:3000下使用,但在https上的 https://git.mydomain.com 下却不是。
Googed了很多,没有任何帮助。Mb 这里有人可以帮助我。
谢谢。