Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2bb08f55
Commit
2bb08f55
authored
Feb 18, 2020
by
Sean Carroll
Committed by
Marcia Ramos
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for Pages configuration file
parent
da0e5519
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
doc/administration/pages/source.md
doc/administration/pages/source.md
+11
-5
No files found.
doc/administration/pages/source.md
View file @
2bb08f55
...
...
@@ -388,6 +388,11 @@ Each request to view a resource in a private site is authenticated by Pages
using that token. For each request it receives, it makes a request to the GitLab
API to check that the user is authorized to read that site.
From
[
GitLab 12.8
](
https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/3689
)
onwards,
Access Control parameters for Pages are set in a configuration file, which
by convention is named
`gitlab-pages-config`
. The configuration file is passed to
pages using the
`-config flag`
or CONFIG environment variable.
Pages access control is disabled by default. To enable it:
1.
Modify your
`config/gitlab.yml`
file:
...
...
@@ -402,13 +407,14 @@ Pages access control is disabled by default. To enable it:
This should be called
`GitLab Pages`
and have a
`Redirect URL`
of
`https://projects.example.io/auth`
. It does not need to be a "trusted"
application, but it does need the
`api`
scope.
1.
Start the Pages daemon
with the following additional
arguments:
1.
Start the Pages daemon
by passing a configuration file with the following
arguments:
```
shell
-auth-client-secret
<OAuth code generated by GitLab>
\
-auth-redirect-uri
http://projects.example.io/auth
\
-auth-secret
<40 random hex characters>
\
-auth-server
<URL of the GitLab instance>
auth-client-id
=
<OAuth Application ID generated by GitLab>
auth-client-secret
=
<OAuth code generated by GitLab>
auth-redirect-uri
=
'http://projects.example.io/auth'
auth-secret
=
<40 random hex characters>
auth-server
=
<URL of the GitLab instance>
```
1.
Users can now configure it in their
[
projects' settings
](
../../user/project/pages/introduction.md#gitlab-pages-access-control-core
)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment