bundles/miniflux: introduce
This commit is contained in:
parent
366374b4e5
commit
ececab44b4
6 changed files with 89 additions and 13 deletions
46
bundles/miniflux/metadata.py
Normal file
46
bundles/miniflux/metadata.py
Normal file
|
@ -0,0 +1,46 @@
|
|||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'miniflux': {},
|
||||
},
|
||||
'repos': {
|
||||
'miniflux': {
|
||||
'items': {
|
||||
'deb https://apt.miniflux.app/ /',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'postgresql': {
|
||||
'users': {
|
||||
'miniflux': {
|
||||
'password': repo.vault.password_for('{} postgresql miniflux'.format(node.name)),
|
||||
},
|
||||
},
|
||||
'databases': {
|
||||
'miniflux': {
|
||||
'owner': 'miniflux',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
metadata.get('miniflux/domain'): {
|
||||
'proxy': {
|
||||
'/': {
|
||||
'target': 'http://127.0.0.1:22040',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue