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
8db0d7ae
Commit
8db0d7ae
authored
Dec 02, 2021
by
Jean-Philippe Baconnais
Committed by
Amy Qualls
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vale issues (read only & commit_template)
parent
d057bc1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/administration/read_only_gitlab.md
doc/administration/read_only_gitlab.md
+4
-4
No files found.
doc/administration/read_only_gitlab.md
View file @
8db0d7ae
...
...
@@ -16,7 +16,7 @@ The configuration for doing so depends on your desired outcome.
## Make the repositories read-only
The first thing you
'll
want to accomplish is to ensure that no changes can be
The first thing you want to accomplish is to ensure that no changes can be
made to your repositories. There's two ways you can accomplish that:
-
Either stop Puma to make the internal API unreachable:
...
...
@@ -46,7 +46,7 @@ made to your repositories. There's two ways you can accomplish that:
## Shut down the GitLab UI
If you don't mind shutting down the GitLab UI, then the easiest approach is to
stop
`sidekiq`
and
`puma`
, and you
'll
effectively ensure that no
stop
`sidekiq`
and
`puma`
, and you effectively ensure that no
changes can be made to GitLab:
```
shell
...
...
@@ -63,7 +63,7 @@ sudo gitlab-ctl start puma
## Make the database read-only
If you want to allow users to use the GitLab UI, then you
'll
need to ensure that
If you want to allow users to use the GitLab UI, then you need to ensure that
the database is read-only:
1.
Take a
[
GitLab backup
](
../raketasks/backup_restore.md
)
...
...
@@ -113,7 +113,7 @@ the database is read-only:
sudo
gitlab-ctl restart postgresql
```
When you're ready to revert the read-only state, you
'll
need to remove the added
When you're ready to revert the read-only state, you need to remove the added
lines in
`/etc/gitlab/gitlab.rb`
, and reconfigure GitLab and restart PostgreSQL:
```
shell
...
...
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