diff options
author | B Stack <bgstack15@gmail.com> | 2020-12-04 20:21:46 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-12-09 15:47:06 -0500 |
commit | 61c8f7ea623b5ba8eeea5b233810dbc5a0f09d18 (patch) | |
tree | 5d8fe1367b618de6f4001361ca0e81f5b0feb2ff /hex-zero.conf.example | |
parent | add footer with impressum (diff) | |
download | hex-zero-61c8f7ea623b5ba8eeea5b233810dbc5a0f09d18.tar.gz hex-zero-61c8f7ea623b5ba8eeea5b233810dbc5a0f09d18.tar.bz2 hex-zero-61c8f7ea623b5ba8eeea5b233810dbc5a0f09d18.zip |
WIP: split many things into configs
including listening port, network address, front page content,
and main configs.
Also, prepare for building into a dpkg.
Diffstat (limited to 'hex-zero.conf.example')
-rw-r--r-- | hex-zero.conf.example | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/hex-zero.conf.example b/hex-zero.conf.example new file mode 100644 index 0000000..19e6300 --- /dev/null +++ b/hex-zero.conf.example @@ -0,0 +1,39 @@ +# vim: syntax=python +FHOST_STORAGE_PATH = "/var/www/0x0/up" +FHOST_USE_X_ACCEL_REDIRECT = False # use True for nginx +USE_X_SENDFILE = False # supposed to use True when using anything other than nginx, but True fails in my apache2 setup +MAX_CONTENT_LENGTH = 512 * 1024 * 1024 +MAX_URL_LENGTH = 4096 +FHOST_EXT_OVERRIDE = { + "audio/flac" : ".flac", + "image/gif" : ".gif", + "image/jpeg" : ".jpg", + "image/png" : ".png", + "image/svg+xml" : ".svg", + "video/webm" : ".webm", + "video/x-matroska" : ".mkv", + "application/octet-stream" : ".bin", + "text/plain" : ".log", + "text/plain" : ".txt", + "text/x-diff" : ".diff", +} + +# default blacklist to avoid AV mafia extortion +FHOST_MIME_BLACKLIST = [ + "application/x-dosexec", + "application/java-archive", + "application/java-vm" +] + +# template for front page of app +FHOST_FRONTPAGE = "/var/www/0x0/front.html.in" + +ADMIN_EMAIL = "webmaster@example.com" +# with this, as well as use this for printing the base url of the app +APP_URL = "http://0x0.example.com/hex-zero" +# use the forwarded IP address header instead of the requester IP address +USE_HTTP_X_FORWARDED_FOR = True +# If you want to expose this app directly on 0.0.0.0 that is dangerous, but up to you. +APP_HOST_LISTEN = "localhost" +# this must match the apache proxy destination port number +APP_PORT = 3031 |