-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py
34 lines (26 loc) · 939 Bytes
/
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
"""
config.py
the main RAPNI configuration file
:copyright: (c) 2016 Internet Archive.
: author: Giovanni Damiola <[email protected]>
"""
## log and debug
DEBUG = True
TESTING = False
## server configuration
SERVER_PORT = 5000
SERVER_HOST = '127.0.0.1'
## default number results
DEFAULT_RESULTS_NUM = 100
## postgresql
PSQL_HOST = 'localhost'
PSQL_PORT = 5432
PSQL_USER = 'rapni'
PSQL_PASSWD = 'rapni'
PSQL_DB = 'rapni'
PSQL_URI = "postgresql://{0}:{1}@{2}:{3}/{4}".format(PSQL_USER, PSQL_PASSWD, PSQL_HOST, PSQL_PORT, PSQL_DB)
## CORS
ALLOWED_CORS_DOMAINS = [ "https://localhost", "https://localhost" ]
## AUTH TOKEN
REQUIRE_AUTHORIZATION = False
AUTH_TOKEN = 'fc6add639e80f76e047f642fe6952168'