0

经典 GitLab 页面设置问题。似乎每次我尝试在 GitLab Pages 上托管页面时都会遇到这种情况。

GltLab Pages 401 - 您无权访问该资源。

这一次,虽然我忘记了如何克服它。所有设置看起来都正确:

CloudFlare DNS 设置

我在 Cloudflare 中关闭了域上的所有 HTTPS/TLS/SSL 只是为了让它更容易连接。

GitLab 页面设置卡在强制 HTTPS 上。不知道怎么会这样卡住?

强制使用 HTTPS 的 GitLab 页面

更多设置: GitLab 页面 401 设置

在此处输入图像描述 在此处输入图像描述

非常感谢任何见解!谢谢你。

4

1 回答 1

1

失踪gitlab-ci.yml

image: alpine:latest

pages:
  stage: deploy
  script:
  - echo 'Nothing to do...'
  artifacts:
    paths:
    - public
  only:
  - master

此外,需要一个public/不是根目录的文件夹。请参阅如何在 GitLab 页面上部署纯 html 站点

尝试从 GitLab 模板的 repo 添加gitlab-ci.yml和/或创建: https ://docs.gitlab.com/ce/user/project/pages/getting_started/pages_new_project_template.htmlpublic/

喜欢这个: https ://gitlab.com/pages/plain-html

于 2021-03-29T05:23:01.650 回答