conf: add allowlist for accessing local network (#6842)

# Conflicts:
#	CHANGELOG.md
#	internal/assets/conf/conf_gen.go
#	internal/assets/templates/templates_gen.go
#	internal/conf/static.go
#	internal/conf/testdata/TestInit.golden.ini
This commit is contained in:
Joe Chen
2022-03-14 22:06:08 +08:00
parent 0fef3c9082
commit eddae31ada
13 changed files with 5086 additions and 5065 deletions

View File

@@ -153,6 +153,8 @@ You would have to re-run this command after changing Go files, or any file under
When you are actively working on HTML templates and static files during development, you may want to enable the following configuration to avoid recompiling and restarting Gogs every time you make a change to files under `template/` and `public/` directories:
```ini
RUN_MODE = dev
[server]
LOAD_ASSETS_FROM_DISK = true
```