Does GitLab Pages Access Control not work anymore?
[Gitlab]Where can I find Gitlab Pages hosted on my private Gitlab instance? - Stack Overflow
Gitlab public pages asks for login for public
how to setup lektor in gitlab pages
If you forked your repo from gitlab.pages.io, you should be good to go.
Next you need to:
setup python on your own machine
install lektor on your own machine
configure your website on your own machine
create blog entries or whatever on your own machine
use lektor to build your site on your own machine
and
then finally push from your own machine the website final static pages onto your repository at gitlab
Hi everyone. Lately I've been wanting to publish a public static website that's in a private repository of mine (hosted on gitlab.com). I already did that in the past once and supposed that it wouldn't be a problem for me.
However, now, GitLab keeps telling me "Access Control is enabled for this Pages website; only authorized users will be able to access it. To make your website publicly available, navigate to your project's Settings > General > Visibility and select Everyone in pages section", and when I do these exact steps, nothing changes and the message keeps showing up for some reason. I tried waiting a few hours and fiddling with the visibility fields but nothing works.
When I checked on my older project to compare fields, I noticed that the pages' visibility was "Only Project Members" though it was still accessible on other computers and on a private window without logging in, but I once miss-clicked on "Save" and now the message above keeps popping up on this repository too, and, of course, the previously-public pages are now private, even though I checked "Everyone" on "Pages Visibility" there.
The documentation also shares this YouTube video and I noticed the subcategories on Visibility was "Pages access control" here while it is "Pages" on my computer. I wonder if the name change broke something but I can't tell much about it. I tried to check on the issues list and haven't seen anyone talk about that.
Is there anything I can do to make my pages public?
Thanks a lot.
You have to activate the pages feature. In your gitlab.rb:
pages_external_url "IP_OF_YOUR_GITLAB"
gitlab_pages['enable'] = true
There is a tutorial: https://www.youtube.com/watch?v=dD8c7WNcc6s&feature=youtu.be And the complete documentation: https://docs.gitlab.com/ce/administration/pages/index.html
You'll need to ask your sysadmin under which wildcard domain Pages is served: https://docs.gitlab.com/ce/user/project/pages/getting_started_part_one.html#gitlab-pages-domain
Then you'll know where your site was deployed to.
Example: on GitLab.com, all Pages domains are served under *.gitlab.io, therefore, your website will be deployed to username.gitlab.io (user/group site) or to username.gitlab.io/project-name (project website).
You need to find out the wildcard domain of your GitLab instance and replace gitlab.io with it.
See also: Pages' limitations: https://docs.gitlab.com/ce/user/project/pages/introduction.html#limitations