~fluix/tilde

ref: 0ac7f6eb904927442a946b1ad1e595add89f4a28 tilde/config/defaults.py -rw-r--r-- 1.4 KiB
0ac7f6ebSteven Guikal Isolate flatpages to blueprint 9 months ago
                                                                                
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
# Full hostname (including port if not 80/443)
SERVER_NAME = "cats.sh.localhost:5000"

# Must be set to allow subdomains to access session cookies
SESSION_COOKIE_DOMAIN = "cats.sh.localhost"

# Cats!
SERVER_BANNER = """
          ██████╗ █████╗ ████████╗███████╗   ███████╗██╗  ██╗         
         ██╔════╝██╔══██╗╚══██╔══╝██╔════╝   ██╔════╝██║  ██║   /\_/\ 
 /\_/\   ██║     ███████║   ██║   ███████╗   ███████╗███████║  ( o.o )
( u.u )  ██║     ██╔══██║   ██║   ╚════██║   ╚════██║██╔══██║   > ^ < 
 > ^ <   ╚██████╗██║  ██║   ██║   ███████║██╗███████║██║  ██║         
          ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝╚═╝╚══════╝╚═╝  ╚═╝         
"""

# Root upload path for all services
MEDIA_ROOT = "./uploads/"

# Store login 'next' parameter in sessions instead of URL to remove necessity
# of checking safetyness.
USE_SESSION_FOR_NEXT = True

# Redis as a database
REDIS = {
    "host": "127.0.0.1",
    "port": 6379,
    "db": 0,
}