-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig_dist.yaml
More file actions
65 lines (60 loc) · 1.85 KB
/
config_dist.yaml
File metadata and controls
65 lines (60 loc) · 1.85 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
PROJECT_URL: 'http://localhost:5000'
SECRET_KEY: 'random-key'
SQLALCHEMY_DATABASE_URI: 'postgresql://ocpdb:development@postgre/ocpdb'
CELERY_BROKER_URL: 'amqp://rabbitmq'
SOURCES:
bnetza_api:
auto_fetch: false # rather large dataset
chargecloud_pforzheim:
chargecloud_stuttgart:
opendata_swiss:
auto_fetch: false # rather large dataset
SERVER_AUTH_USERS:
# Test user for local development
dev:
hash: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 # test
roles:
- bnetza
# 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