This repository has been archived on 2025-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
Files
aleesa-webapp/data/config_sample.json
eleksir a0fd6faafc Introduce option country in config to use either country code or coordinates as secondary id for city.
Looks like openweathermap.org gives incorrect or mangled coutry codes for some cities for whatever reasons.
So we have to introduce this option in order to cool-down irritation of some engaging users.
2023-05-07 16:22:33 +03:00

43 lines
997 B
JSON

{
# server address
"server" : "redis",
"port" : "6379",
"channels" : [
"webapp"
],
# should we fork() and become unix daemon?
"daemonize" : 1,
# where caches go there
"cachedir" : "data/cache",
# unprivileged system user to run bot as
"user" : "nobody",
# logs goes there
"log" : "/var/log/aleesa-webapp/aleesa-webapp.log",
"loglevel" : "notice",
# ditto
"pid" : "/var/run/aleesa-webapp/aleesa-webapp.pid",
# maximal amount of message forwardings, to avoid endless loops
"forwards_max" : 5,
"openweathermap" : {
# (For shitty political reasons) 0 - use coordinates instead of coutry code, 1 - use country codes
"country" : 0,
"appid" : "get_it_on_openweathermap.org"
},
"image" : {
"dir" : "data/image",
"flickr" : {
"consumer_key" : "key",
"consumer_secret" : "key_secret",
"verifier" : "verifier_key"
}
}
}