-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.ini
135 lines (121 loc) · 3.69 KB
/
production.ini
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[app:main]
use = egg:asset_tracker
data.folder = %(here)s/data
# sqlalchemy.url = ${SQLALCHEMY_URL}
sqlalchemy.url = sqlite:///%(data.folder)s/database.sqlite
retry.attempts = 3
database.extensions =
invisibleroads_macros_database.SpatialiteExtension
application.environment =
secret.length = 128
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid.includes =
appa_auth_consumer
asset_format_dss
asset_report_risks
asset_report_tasks
client_cache.http.expiration_time_in_seconds = 3600
server_cache.function.backend = dogpile.cache.memory
server_cache.function.expiration_time = 3600
asset.id.length = 16
bus.id.length = 16
connection.id.length = 16
line_type.id.length = 16
task.id.length = 16
comment.id.length = 16
multiauth.policies = session
multiauth.policy.session.use = pyramid.authentication.SessionAuthenticationPolicy
multiauth.authorization_policy = pyramid.authorization.ACLAuthorizationPolicy
# multiauth.groupfinder =
redis.sessions.secret = ${REDIS_SESSIONS_SECRET}
redis.sessions.url = redis://${REDIS_HOST}:${REDIS_PORT}/${REDIS_DATABASE}
redis.sessions.cookie_name = s
redis.sessions.cookie_secure = True
redis.sessions.cookie_httponly = True
redis.sessions.timeout = 43200
redis.sessions.prefix = s-
appa_auth_consumer.mock = False
appa_auth_consumer.cookie_secure = True
appa_auth_consumer.cookie_httponly = True
appa_auth_consumer.verify_tls = ${VERIFY_TLS}
appa_auth_consumer.auth_providers = appa
appa_auth_consumer.auth_provider.appa.auth_scopes = asset.read asset.write
appa_auth_consumer.auth_provider.appa.consumer_key = ${ACCOUNT_CLIENT_ID}
appa_auth_consumer.auth_provider.appa.consumer_secret = ${ACCOUNT_CLIENT_SECRET}
appa_auth_consumer.auth_provider.appa.form_url = ${ACCOUNT_URL}/o/authorize/
appa_auth_consumer.auth_provider.appa.token_url = ${ACCOUNT_URL}/o/token/
appa_auth_consumer.auth_provider.appa.resource_url = ${ACCOUNT_URL}/members/info/
appa_auth_consumer.user_list_url = ${ERTAPI_URL}/v1/users/
appa_auth_consumer.utility_list_url = ${ERTAPI_URL}/v1/utilities/
[server:main]
use = egg:waitress#main
listen = *:8007
trusted_proxy = 127.0.0.1
trusted_proxy_count = 1
trusted_proxy_headers =
x-forwarded-for
x-forwarded-host
x-forwarded-port
x-forwarded-proto
clear_untrusted_proxy_headers = yes
[pshell]
setup = invisibleroads_records.shells.setup
m = asset_tracker.models
[alembic]
script_location = asset_tracker/migrations
file_template = %%(year)d%%(month).2d%%(day).2d-%%(rev)s
[alembic:excluded]
tables =
ElementaryGeometries
SpatialIndex
geometry_columns
geometry_columns_auth
geometry_columns_field_infos
geometry_columns_statistics
geometry_columns_time
spatial_ref_sys
spatial_ref_sys_aux
spatialite_history
sql_statements_log
sqlite_sequence
views_geometry_columns
views_geometry_columns_auth
views_geometry_columns_field_infos
views_geometry_columns_statistics
virts_geometry_columns
virts_geometry_columns_auth
virts_geometry_columns_field_infos
virts_geometry_columns_statistics
indices =
idx_spatial_ref_sys
idx_srid_geocols
idx_viewsjoin
idx_virtssrid
[loggers]
keys = root, asset_tracker, sqlalchemy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_asset_tracker]
level = WARN
handlers =
qualname = asset_tracker
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s