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
|
"""
siteconfig.py - user editable configuration file
"""
# config defines default configuration values which you can override in
# this file
from config import config
class siteconfig(config):
# REQUIRED SETTINGS #
DOMAIN = "mjfer.net" # Your site here!
HOME_TITLE = "WELCOME"
LINKS_FILE = ".links" # ".lnx" if you like
DESC_FILE = ".description" # ".desc"
DEFAULT_MIMETYPE = "application/octet-stream"
# ^This usually prompts a browser to download a file if the mime
# type is unknown. A good alternative might be "text/plain"
# OPTIONAL SETTINGS #
# Be default, ALL directories in the site toolbar are contained in
# ./templates/site/. You can change this to only specific directories, but
# these still have to be in ./templates/site
MAIN_SITE_DIRS = sorted(
config.DEFAULT_SITE_DIRS
) # ["dir1", "dir2", "dir3"]
# Set a custom secret key. If not set, it will be generated
# Most of the time, you don't need to set this!
SECRET_KEY = config.GENERATED_SECRET_KEY # replace with random number.
# Options for Flask Compress
# see here https://pypi.org/project/Flask-Compress/
COMPRESS_MIMETYPES = list(config.MIMETYPES.values())
# RSS Settings
rss_channel_config = {
'TITLE': "RSS Feed for mjfer.net",
'LINK': "mjfer.net",
'DESCRIPTION': "",
'LANGUAGE': "en-us",
'PUBDATE': "",
'LASTBUILDDATE': "",
'DOCS': "https://git.mjfer.net/ezcms.git/",
'GENERATOR': "EZCMS",
'AUTHOR': "mjf@mjfer.net",
'WEBMASTER': "mjf@mjfer.net",
# Max amount of paragraphs to print in each description
'DESCRIPTION_LENGTH': 3,
# File extensions to include in RSS updates
'RSS_FILE_EXT': ["txt", "html", "html!"],
}
|