2023-09-02 11:35:04 +00:00
|
|
|
defaults = {
|
|
|
|
'backups': {
|
2023-09-02 18:48:15 +00:00
|
|
|
'paths': {
|
|
|
|
'/var/opt/matrix-stickerpicker',
|
|
|
|
},
|
2023-09-02 11:35:04 +00:00
|
|
|
},
|
|
|
|
'zfs': {
|
|
|
|
'datasets': {
|
|
|
|
'tank/matrix-stickerpicker': {
|
|
|
|
'mountpoint': '/var/opt/matrix-stickerpicker',
|
|
|
|
'needed_by': {
|
|
|
|
'directory:/var/opt/matrix-stickerpicker',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
|
|
'nginx/vhosts/matrix-stickerpicker',
|
|
|
|
)
|
|
|
|
def nginx(metadata):
|
|
|
|
if not node.has_bundle('nginx'):
|
|
|
|
raise DoNotRunAgain
|
|
|
|
|
|
|
|
return {
|
|
|
|
'nginx': {
|
|
|
|
'vhosts': {
|
|
|
|
'matrix-stickerpicker': {
|
|
|
|
'domain': metadata.get('matrix-stickerpicker/domain'),
|
|
|
|
'do_not_set_content_security_headers': True,
|
|
|
|
'webroot': '/opt/matrix-stickerpicker/src/web/',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|