Franziska Kunsmann
017c2c3421
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
57 lines
1.2 KiB
Python
57 lines
1.2 KiB
Python
defaults = {
|
|
'apt': {
|
|
'packages': {
|
|
'imagemagick': {},
|
|
'ffmpeg': {},
|
|
'libimage-exiftool-perl': {},
|
|
},
|
|
},
|
|
'backups': {
|
|
'paths': {
|
|
'/var/pleroma',
|
|
},
|
|
},
|
|
'zfs': {
|
|
'datasets': {
|
|
'tank/pleroma-data': {
|
|
'mountpoint': '/var/pleroma',
|
|
},
|
|
},
|
|
},
|
|
'postgresql': {
|
|
'roles': {
|
|
'pleroma': {
|
|
'password': repo.vault.password_for(f'{node.name} postgresql pleroma'),
|
|
},
|
|
},
|
|
'databases': {
|
|
'pleroma': {
|
|
'owner': 'pleroma',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
'nginx/vhosts/pleroma',
|
|
)
|
|
def nginx(metadata):
|
|
if not node.has_bundle('nginx'):
|
|
raise DoNotRunAgain
|
|
|
|
return {
|
|
'nginx': {
|
|
'vhosts': {
|
|
'pleroma': {
|
|
'domain': metadata.get('pleroma/url'),
|
|
'proxy': {
|
|
'/': {
|
|
'target': 'http://127.0.0.1:21000',
|
|
'websockets': True,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|