-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
65 lines (48 loc) · 1.43 KB
/
config.py
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
65
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2014 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2014-06-28
#
"""
"""
import os
DEBUG = False
# Default size of icons
SIZE = 128 # px
basedir = os.path.abspath(os.path.dirname(__file__))
# Directory to save generated icons to
CACHEDIR = os.path.join(basedir, 'iconserver', 'static', 'icons')
# URL to CACHEDIR
CACHEURL = None
# Default (for the dev server)
# CACHEURL = 'http://localhost:5000/static/icons'
# Allow API users to specify icon size
API_ALLOW_SIZE = True
# Maximum size of the icon cache
# Override this in `siteconfig.py`
MAX_CACHE_SIZE = 0 # Bytes
# Where JSON configuration files are stored
CONFDIR = os.path.join(basedir, 'fonts')
# Where the TTF fonts are saved
FONTDIR = os.path.join(basedir, 'iconserver', 'static', 'fonts')
LOG_PATH = os.path.join(basedir, 'log', 'iconserver.log')
LOG_SIZE = 1024 * 1024 # 1 MB
# Administrators
ADMINS = []
USE_LOCAL_MAIL = True
# HTML Page footer shown at the bottom of each page
# You can include HTML, as this won't be escaped by Jinja
HTML_FOOTER = """
by <a href="http://www.deanishe.net/">Dean Jackson</a>
|
hosted on <a
href="https://www.linode.com/?r=4a30af04867ab319eef6c19a4de9b06620c11dc4"
target="_new">Linode</a>
|
fork on <a href="https://github.com/deanishe/bundler-icon-server">GitHub</a>
"""
from siteconfig import *