diff options
Diffstat (limited to 'fuss.conf.example')
-rw-r--r-- | fuss.conf.example | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/fuss.conf.example b/fuss.conf.example new file mode 100644 index 0000000..a45dc21 --- /dev/null +++ b/fuss.conf.example @@ -0,0 +1,64 @@ +# File: fuss.conf.example + +# See also: fuss.wsgi.ini + +# Store uploaded files here +UPLOAD_PATH = "/var/www/fuss/upload/" + +# Nginx option that has not yet been tested. +USE_X_ACCEL_REDIRECT = False + +# turn this on to trust the request headers for the incoming path. You can use this instead of APP_SERVER, APP_PREFIX, and PROXY_LAYERS. +DISCOVER_URL = True +# Or manually define what names to use. +#APP_SERVER = "http://www.example.com:5003/" # protocol, host, port +#APP_PREFIX = "" # directory on web host +# And these when behind a reverse proxy +#APP_SERVER = "https://www.example.com" +#APP_PREFIX = "/fuss/" +#PROXY_LAYERS = 1 # must be precise + +# Refuse to store files of these mimetypes. +MIMETYPE_BLACKLIST = [ + "audio/ogg" +] + +# for vanity directories for uploads and downloads. +# if you leave UPLOAD_PREFIX blank, then the upload.html.j2 is never available and only the front page is available to browsers. Uploads are possible, just as a POST to the main application URL. +# These are directories, and the input is sanitized to safely handle if you put slashes here or not. +UPLOAD_PREFIX = "/u/" +DOWNLOAD_PREFIX = "/d/" + +MAX_FILE_SIZE = 1024 * 1024 * 512 # 512MB + +# How many copies of a file to accept +MAX_DUPLICATE_NAMES = 5 + +# not used by wsgi, but useful for when running with python3 +APP_HOST = "0.0.0.0" +APP_PORT = 5003 + +# Run maintenance every X seconds. +LOOP_DELAY = 3 * 60 + +# Store and use extra metadata +META = True +# Allow clients to query metadata by adding ".meta" to filename. This is required for meta_headers as well. +META_VISIBLE = True +# Show the following metadata fields as headers +META_HEADERS = [ + "address", + "uploaded" +] + +# Include mimetype icon support on html-long. This requires META = True +ICONS = True +ICON_THEME = "Numix" + +# for in-app adjustments of logging, see project [hex-zero](https://gitlab.com/bgstack15/hex-zero/-/tree/stack) which has limited ability to affect logging. +# See also https://flask.palletsprojects.com/en/master/logging/ +# But for now, file fuss.wsgi.ini controls the logging. + +# Control what paths are used for source files +TEMPLATE_FOLDER = "/usr/share/fuss/templates" +STATIC_FOLDER = "/usr/share/fuss/static" |