【发布时间】:2018-11-25 02:26:36
【问题描述】:
我正在尝试调整 GitLab 页面 (10.8.2),目标是通过 Let's Encrypt 启用其页面域 (example.io) TLS。
我在常规 HTTP 上设置了一个工作页面:
pages_external_url "http://example.io"
我在 Google 上找到的想法是提供以下内容来应对 certbot 挑战:
pages_nginx['custom_gitlab_server_config'] = "location ^~ /.well-known { root /var/www/letsencrypt; }"
然后发出gitlab-ctl reconfigure
然后我在/var/www/letsencrypt/bla 创建一个测试文件并尝试使用浏览器在http://example.io/.well-known/bla 访问它,但没有成功:我得到一个301 并重定向到https://example.ltd/.well-known/bla 的主GitLab 域(主GitLab已启用 TLS)。
我在这里想念什么?
【问题讨论】:
标签: gitlab lets-encrypt gitlab-pages