summary refs log tree commit diff stats
path: root/getwtxt.yml
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-04-12 14:45:43 -0400
committerBen Morrison <ben@gbmor.dev>2020-04-12 15:46:23 -0400
commit0daa948c9c6b507f1f087d57941ef35c26c97ae0 (patch)
treeef671bf2b358d568472faecb778c9499c50df024 /getwtxt.yml
parentf2bf68aedafb7b1df3c8d853ed7c9f7d35029de3 (diff)
downloadgetwtxt-0daa948c9c6b507f1f087d57941ef35c26c97ae0.tar.gz
Allowing static files to be served directly from
a directory specified in the config.

Added a handler to svc.go:Start() to serve /static/
Added default value in conf.go for "StaticFilesDirectory" in the
config file.
Read the value of StaticFilesDirectory in config to the config
global in conf.go
Diffstat (limited to 'getwtxt.yml')
-rw-r--r--getwtxt.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/getwtxt.yml b/getwtxt.yml
index 8078245..8945993 100644
--- a/getwtxt.yml
+++ b/getwtxt.yml
@@ -45,6 +45,10 @@ DatabasePath: "getwtxt.db"
 #     tmpl/index.html
 AssetsDirectory: "assets"
 
+# The path to the static files directory.
+# Will be served as /static
+StaticFilesDirectory: "/usr/local/getwtxt/static"
+
 # If true, getwtxt will send all log messages, including
 # requests, to stdout. It will ignore any set log file.
 # Useful for debugging, but you probably want to keep