goconfig.py.template 1.9 KB
Newer Older
Jean Michel Rouly's avatar
Jean Michel Rouly committed
1
2
3
4
5
6
7
8
9
##############################
# Site configuration variables
#
# These variables configure how the website is structured.
##############################

# doc_root: Describes where the website's root directory is.
doc_root = "/srv/http"

10
# domain: This is the domain the website is being hosted at.
11
# do not include a final slash.
12
domain = "www.example.com"
13

Jean Michel Rouly's avatar
Jean Michel Rouly committed
14
15
16


##############################
Jean Michel Rouly's avatar
Jean Michel Rouly committed
17
# Database connection variables
Jean Michel Rouly's avatar
Jean Michel Rouly committed
18
19
#
# These variables configure how the website connects
Jean Michel Rouly's avatar
Jean Michel Rouly committed
20
# to the required database.
Jean Michel Rouly's avatar
Jean Michel Rouly committed
21
22
23
24
25
##############################

# sql_domain: The location of the SQL database to connect to.
sql_domain = "localhost"

Jean Michel Rouly's avatar
Jean Michel Rouly committed
26
# sql_usr: The username to use with this SQL database.
Jean Michel Rouly's avatar
Jean Michel Rouly committed
27
28
sql_usr    = "go-user"

Jean Michel Rouly's avatar
Jean Michel Rouly committed
29
# sql_pasw: The plaintext password used to connec to the SQL database.
30
sql_pasw   = "go-password"
Jean Michel Rouly's avatar
Jean Michel Rouly committed
31
32

# sql_db: The SQL database or schema name to which to connect.
33
sql_db     = "go"
Jean Michel Rouly's avatar
Jean Michel Rouly committed
34

35
36
37
38
39
# sql_url_table: The SQL table storing the URL listing.
sql_url_table  = "urls"

# sql_usr_table: The SQL table storing the active users.
sql_usr_table = "usrs"
Jean Michel Rouly's avatar
Jean Michel Rouly committed
40

41
42
43
# sql_registration_table: The SQL table storing registered users.
sql_registration_table = "registered"

Jean Michel Rouly's avatar
Jean Michel Rouly committed
44
#ldap_domain: The location of the LDAP database to connect to.
45
ldap_domain = "ldap://ldap.example.com:port"
Jean Michel Rouly's avatar
Jean Michel Rouly committed
46

Jean Michel Rouly's avatar
Jean Michel Rouly committed
47
48
49
50
51
52
53
54
55
56
57
58


##############################
# Behaviour configuration variables
#
# These variables define various system behaviors, such
# as global limits or values.
##############################

# min_url_len: This is the minimum required length of
#   a "short url" or url identifier.
min_url_len = 5
59

60
61
62
# piwik: Enable piwik analytics & tracking.
piwik = False

63
64
65
66
67
68
69
70
71
# piwik_tracking_api_url: If Piwik is enabled, point this to the tracking server.
piwik_tracking_api_url = "http://www.example.com/analytics/piwik.php"

# piwik_site_id: The Piwik SITE_ID global variable.
piwik_site_id = 1

# piwik_token_auth: The private Piwik tracking token auth. Currently
# disabled.
piwik_token_auth = ""