aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2019-04-04 14:21:54 +0000
committertechknowlogick <matti@mdranta.net>2019-04-04 10:21:54 -0400
commit0f54f42646ca08a98b9b07ea069ff8e6236967d4 (patch)
tree4736cb8ec7b3eb449024426446a752e6447a1333 /docs/content/doc
parent059b52759e0df118039afdec1a9ad421482767de (diff)
downloadgitea-0f54f42646ca08a98b9b07ea069ff8e6236967d4.tar.gz
gitea-0f54f42646ca08a98b9b07ea069ff8e6236967d4.zip
docs: document setup with read-only config (#6348)
Diffstat (limited to 'docs/content/doc')
-rw-r--r--docs/content/doc/installation/from-binary.en-us.md1
-rw-r--r--docs/content/doc/usage/command-line.en-us.md (renamed from docs/content/doc/usage/command-line.md)0
2 files changed, 1 insertions, 0 deletions
diff --git a/docs/content/doc/installation/from-binary.en-us.md b/docs/content/doc/installation/from-binary.en-us.md
index 8fa96bd96e..7e795029db 100644
--- a/docs/content/doc/installation/from-binary.en-us.md
+++ b/docs/content/doc/installation/from-binary.en-us.md
@@ -82,6 +82,7 @@ chmod 770 /etc/gitea
chmod 750 /etc/gitea
chmod 644 /etc/gitea/app.ini
```
+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`.
### Configure Gitea's working directory
diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.en-us.md
index 510e90f954..510e90f954 100644
--- a/docs/content/doc/usage/command-line.md
+++ b/docs/content/doc/usage/command-line.en-us.md