get redis database mapping from libs.defaults
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
b6b5beaa27
commit
d288923969
5 changed files with 14 additions and 10 deletions
|
@ -29,12 +29,7 @@ type = sqlite3
|
|||
;cache_mode = private
|
||||
|
||||
[remote_cache]
|
||||
% if node.has_bundle('redis'):
|
||||
type = redis
|
||||
connstr = addr=127.0.0.1:6379
|
||||
% else:
|
||||
type = database
|
||||
% endif
|
||||
|
||||
[analytics]
|
||||
reporting_enabled = false
|
||||
|
|
|
@ -15,7 +15,7 @@ REDIS = {
|
|||
'HOST': 'localhost',
|
||||
'PORT': 6379,
|
||||
'PASSWORD': '',
|
||||
'DATABASE': 0,
|
||||
'DATABASE': ${repo.libs.defaults.redis_databases['netbox'][0]},
|
||||
'DEFAULT_TIMEOUT': 300,
|
||||
'SSL': False,
|
||||
},
|
||||
|
@ -23,7 +23,7 @@ REDIS = {
|
|||
'HOST': 'localhost',
|
||||
'PORT': 6379,
|
||||
'PASSWORD': '',
|
||||
'DATABASE': 1,
|
||||
'DATABASE': ${repo.libs.defaults.redis_databases['netbox'][1]},
|
||||
'DEFAULT_TIMEOUT': 300,
|
||||
'SSL': False,
|
||||
}
|
||||
|
|
|
@ -25,10 +25,10 @@ ssl = False
|
|||
|
||||
% if node.has_bundle('redis'):
|
||||
[celery]
|
||||
backend = redis://127.0.0.1/1
|
||||
broker = redis://127.0.0.1/2
|
||||
backend = redis://127.0.0.1/${repo.libs.defaults.redis_databases['pretalx'][0]}
|
||||
broker = redis://127.0.0.1/${repo.libs.defaults.redis_databases['pretalx'][1]}
|
||||
|
||||
[redis]
|
||||
location = redis://@127.0.0.1:6379/3
|
||||
location = redis://@127.0.0.1:6379/${repo.libs.defaults.redis_databases['pretalx'][2]}
|
||||
session = True
|
||||
% endif
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
servers = "127.0.0.1";
|
||||
db = "${repo.libs.defaults.redis_databases['rspamd']}
|
||||
|
|
|
@ -5,5 +5,13 @@ influxdb_org = 'encrypt$gAAAAABgg9hyjz4XtvG8NBw9uYxiumS3v7YKIrtc9tTTABg1f9R22gzn
|
|||
influxdb_token = 'encrypt$gAAAAABgg9Ag632Xyuc6SWXaR1uH2tLOChmVKAoBIikhjntSSD2qJFL_eouVQGXCLH2HEuSbSdEXcTPn2qmhOiA9jmFdoDSbVbQUsp0EID1wLsWYG_Um2KOxZSF-tn9eDZlgShQYySjzO3nQRmdlJpVLUnGHsiwv_sHD2FstXGpfzTPZq5_egUqEc0K2X-aN2J6BTYc2fZAN'
|
||||
influxdb_url = 'https://influxdb.kunsmann.eu/'
|
||||
|
||||
# FIXME database conflicts
|
||||
redis_databases = {
|
||||
'netbox': (0, 1),
|
||||
'rspamd': 0,
|
||||
'paperless-ng': None, # probably 0, but undocumented
|
||||
'pretalx': (1, 2, 3),
|
||||
}
|
||||
|
||||
security_email = f'mailto:{hostmaster_email}'
|
||||
security_lang = {'en', 'de'}
|
||||
|
|
Loading…
Reference in a new issue