blob: a45dc212b8206cecc3cb7731d7e0b4f2d3c161fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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"
|