Gitlab 服务器运行页面位于https://pages.example.com
Gitlab 页面正确设置为同时提供一个页面https://example.com/代替https://user.pages.example.com
由于无法从https://user.pages.example.com/到https://example.com使用 google domains,我有一个 nginx 反向代理设置,如下所示:
server {
server_name example.com;
location / {
proxy_pass https://user.pages.example.com;
}
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
}
去的时候很好用https://example.com(显示https://example.com而不是https://user.pages.example.com)
该页面上的 index.html 链接转到,./folder/
然后 URL 切换到https://user.pages.example.com/folder/(不好)
应该去https://example.com/folder/
我不知道该如何解决。