-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig_dist_dev.yaml
More file actions
82 lines (76 loc) · 2.2 KB
/
config_dist_dev.yaml
File metadata and controls
82 lines (76 loc) · 2.2 KB
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
PROJECT_URL: 'http://localhost:5010'
SECRET_KEY: 'random-key'
DEBUG: True
SQLALCHEMY_DATABASE_URI: 'postgresql://ocpdb:development@postgre/ocpdb'
SQLALCHEMY_ENGINE_OPTIONS:
pool_size: 100
pool_recycle: 600
CELERY_BROKER_URL: 'amqp://rabbitmq'
OBJECT_ID_SECRET: secret
SOURCES:
bnetza_excel:
auto_fetch: false # rather large dataset
bnetza_api:
auto_fetch: false # rather large dataset
chargecloud_ludwigsburg:
api_key: test-api-key
chargecloud_pforzheim:
chargecloud_stuttgart:
heilbronn_neckarbogen:
user: user
password: password
opendata_swiss:
auto_fetch: false # rather large dataset
datex2_enbw:
auto_fetch: false
static_subscription_id: 12345
realtime_subscription_id: 67890
SERVER_AUTH_USERS:
dev:
hash: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 # test
roles:
- bnetza
- datex2
# This is a template. You can rename it to the config value LOGGING and adapt it to your needs.
LOGGING_TEMPLATE:
version: 1
formatters:
open_telemetry:
(): webapp.common.logging.formatter.flask_open_telemetry_formatter.FlaskOpenTelemetryFormatter
prefix: ocpdb
service_name: OCPDB
human_readable:
format: '%(asctime)s %(levelname)s: %(message)s'
handlers:
console_stdout:
class: logging.StreamHandler
level: INFO
formatter: open_telemetry
stream: ext://sys.stdout
console_stderr:
class: logging.StreamHandler
level: ERROR
formatter: open_telemetry
stream: ext://sys.stderr
split_log_file:
class: webapp.common.logging.split_log_file_handler.SplitLogFileHandler
level: INFO
log_path: /app/logs
formatter: human_readable
open_telemetry_queue:
class: logging.handlers.QueueHandler
listener: webapp.common.logging.autostart_queue_listener.AutostartQueueListener
queue: queue.Queue
handlers:
- open_telemetry_push
level: INFO
formatter: open_telemetry
open_telemetry_push:
class: webapp.common.logging.http_json_post_handler.HttpPostJsonHandler
url: http://mocked-loki:5000/otel
level: INFO
loggers:
webapp:
level: INFO
handlers:
- split_log_file