aboutsummaryrefslogtreecommitdiffstats
path: root/config.py.sample
blob: 05a065008f2f3d117c0137e300e7891660e03c5f (plain) (blame)
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
#
# Config keys
# ===========
#
# domain_name: PeeringDB domain name
#   Defaults to "www.peeringdb.com",
#   but can eg. be set to "beta.peeringdb.com" for testing
#
# db_conn_str: libpq database connection string
#   https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
#
# db_schema: database schema name
#   If not specified, it defaults to 'peeringdb'
#
# auth: 'API-key'
#   Authenticate using an API-key.
#
#   https://docs.peeringdb.com/blog/api_keys/
#   https://github.com/peeringdb/peeringdb/blob/master/docs/api_keys.md
#
# auth: HTTPBasicAuth('username', 'password')
#   Authenticate using username/password (DEPRECATED)
#   requires: from requests.auth import HTTPBasicAuth
#

def get_config():
    return {
        'db_conn_str': 'dbname=pdbtest',
        'db_schema': 'peeringdb',
        'auth': 'obtain_an_api-key_from_peeringdb_com',
    }