diff options
author | Runxi Yu <me@runxiyu.org> | 2025-08-12 11:01:07 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-09-13 19:08:22 +0800 |
commit | 5717faed659a9eeb86c528ab56822c42eca1ad3f (patch) | |
tree | 92e6662628a51c03c52300d2fd98173716a82882 /forge.example.scfg | |
parent | Remove forge-specific functions from misc (diff) | |
download | forge-5717faed659a9eeb86c528ab56822c42eca1ad3f.tar.gz forge-5717faed659a9eeb86c528ab56822c42eca1ad3f.tar.zst forge-5717faed659a9eeb86c528ab56822c42eca1ad3f.zip |
Refactor
Diffstat (limited to '')
-rw-r--r-- | forge.example.scfg (renamed from forge.scfg) | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/forge.scfg b/forge.example.scfg index 1c8eeb9..541c706 100644 --- a/forge.scfg +++ b/forge.example.scfg @@ -1,4 +1,4 @@ -http { +web { # What network transport should we listen on? # Examples: tcp tcp4 tcp6 unix net tcp @@ -20,10 +20,16 @@ http { read_timeout 120 write_timeout 1800 idle_timeout 120 + max_header_bytes 20000 # Are we running behind a reverse proxy? If so, we will trust # X-Forwarded-For headers. reverse_proxy true + + templates_path /usr/share/lindenii/forge/templates + static_path /usr/share/lindenii/forge/static + + shutdown_timeout 10 } irc { @@ -61,6 +67,8 @@ ssh { # What is the canonical SSH URL? root ssh://forge.example.org + + shutdown_timeout 10 } general { @@ -68,10 +76,6 @@ general { } db { - # What type of database are we connecting to? - # Currently only "postgres" is supported. - type postgres - # What is the connection string? conn postgresql:///lindenii-forge?host=/var/run/postgresql } @@ -97,6 +101,7 @@ lmtp { # General timeouts read_timeout 300 write_timeout 300 + shutdown_timeout 10 } pprof { |