Skip to content

Commit 0f54f42

Browse files
nodiscctechknowlogick
authored andcommitted
docs: document setup with read-only config (#6348)
1 parent 059b527 commit 0f54f42

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

docs/content/doc/installation/from-binary.en-us.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ chmod 770 /etc/gitea
8282
chmod 750 /etc/gitea
8383
chmod 644 /etc/gitea/app.ini
8484
```
85+
If you don't want the web installer to be able to write the config file at all, it is also possible to make the config file read-only for the gitea user (owner/group `root:root`, mode `0660`), and set `INSTALL_LOCK = true`. In that case all database configuration details must be set beforehand in the config file, as well as the `SECRET_KEY` and `INTERNAL_TOKEN` values. See the [command line documentation]({{< relref "doc/usage/command-line.en-us.md" >}}) for information on using `gitea generate secret INTERNAL_TOKEN`.
8586

8687
### Configure Gitea's working directory
8788

0 commit comments

Comments
 (0)