forked from OpenBankProject/OBP-API-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py.example
70 lines (54 loc) · 1.97 KB
/
settings.py.example
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
66
67
68
69
70
# -*- coding: utf-8 -*-
#
# Settings for this project, copy this file to settings.py
# Base URL of the API
BASE_URL = 'http://localhost:8080'
# API version to use for requests
API_VERSION = 'v3.0.0'
# Username for DirectLogin
USERNAME = ''
# Password for DirectLogin
PASSWORD = ''
# Consumer key of the app registered with the API
CONSUMER_KEY = ''
# Consumer secret of the app registered with the API
CONSUMER_SECRET = ''
# License dictionary used for some API calls
# Leave as is if you do not know what to do with it
LICENSE = {
'id': 'copyright',
'name': 'Copyright 2017',
}
###################################################################
# The following settings are for generate_stats.py only:
###################################################################
# Start date after which an 'active' app is determined
# For special events like hackathons
ACTIVE_APPS_DATE_START = '2017-09-01 00:00:00'
# Name of app used to register API Explorer
APPNAME_APIEXPLORER = 'API Explorer'
# Database connection details
DATABASE = {
'host': 'localhost',
'name': '',
'user': '',
'password': '',
}
# If you do not want non-authenticated requests from e.g. API Explorer or SoFi, add 'null' to EXCLUDE_APPS
EXCLUDE_APPS = ['null']
# Exclude e.g. metrics entries when querying table mappedmetric
EXCLUDE_FUNCTIONS = ['getMetrics', 'getConnectorMetrics']
EXCLUDE_URL_PATTERN = '%management/metrics%'
# When the collection of data should start
DATE_START = '2017-01-01 00:00:00'
# When the collection of data should end
DATE_END = '2018-01-01 00:00:00'
# Collection of data between DATE_START and DATE_BEFORE (exclude hackathon)
DATE_BEFORE = '2017-06-08 00:00:00'
# Collection of data between DATE_AFTER and DATE_END (exclude hackathon)
DATE_AFTER = '2017-06-12 00:00:00'
# Timezone of the database server
SERVER_TIMEZONE = 'UTC'
# List of email addresses to use for a table which shows these users' apps
# and warehouse access
APPS_USER_EMAIL_CANSEARCHWAREHOUSE_ADDRESSES = []