2022-10-14 22:11:27 +02:00
|
|
|
[default]
|
|
|
|
debug = false
|
|
|
|
default = true
|
|
|
|
local_state_dir = "/var/lib/mobilizon-reshare"
|
2023-05-22 13:00:37 +02:00
|
|
|
#db_url = "@format sqlite://{this.local_state_dir}/events.db"
|
2022-10-14 22:11:27 +02:00
|
|
|
db_url = "@format postgres://mobilizon_reshare:mobilizon_reshare@db:5432/mobilizon_reshare"
|
2023-05-22 13:00:37 +02:00
|
|
|
locale = "en-uk"
|
2022-10-14 22:11:27 +02:00
|
|
|
|
|
|
|
[default.source.mobilizon]
|
|
|
|
url="https://some-mobilizon.com/api"
|
|
|
|
group="my_group"
|
|
|
|
|
|
|
|
[default.selection]
|
|
|
|
strategy = "next_event"
|
|
|
|
|
|
|
|
[default.selection.strategy_options]
|
|
|
|
break_between_events_in_minutes = 360
|
|
|
|
|
|
|
|
[default.logging]
|
|
|
|
version = 1
|
|
|
|
disable_existing_loggers = false
|
|
|
|
|
|
|
|
[default.logging.formatters.standard]
|
|
|
|
format = '[%(asctime)s] [%(levelno)s] [%(levelname)s] %(message)s'
|
|
|
|
|
|
|
|
[default.logging.handlers.console]
|
|
|
|
level = "DEBUG"
|
|
|
|
class = "logging.StreamHandler"
|
|
|
|
formatter = "standard"
|
|
|
|
stream = "ext://sys.stderr"
|
|
|
|
|
2023-05-22 13:00:37 +02:00
|
|
|
[default.logging.handlers.file]
|
|
|
|
level = "INFO"
|
|
|
|
class = "logging.handlers.RotatingFileHandler"
|
|
|
|
formatter = "standard"
|
|
|
|
filename = "@format {this.local_state_dir}/mobilizon_reshare.log"
|
|
|
|
maxBytes = 52428800
|
|
|
|
backupCount = 500
|
|
|
|
encoding = "utf8"
|
|
|
|
|
2022-10-14 22:11:27 +02:00
|
|
|
[default.logging.root]
|
2023-05-22 13:00:37 +02:00
|
|
|
level = "INFO"
|
|
|
|
handlers = ['console', 'file']
|