bundles/element-web: move to /opt (and zfs, if we have that)
This commit is contained in:
parent
afdfc0f8f2
commit
f7098b0d35
2 changed files with 20 additions and 8 deletions
|
@ -1,3 +1,16 @@
|
|||
defaults = {
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/element-web': {
|
||||
'mountpoint': '/opt/element-web',
|
||||
'needed_by': {
|
||||
'directory:/opt/element-web',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts',
|
||||
)
|
||||
|
@ -5,8 +18,9 @@ def nginx_config(metadata):
|
|||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
metadata.get('element-web/url'): {
|
||||
'webroot': '/var/www/{}/webapp/'.format(metadata.get('element-web/url')),
|
||||
'element-web': {
|
||||
'domain': metadata.get('element-web/url'),
|
||||
'webroot': '/opt/element-web',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue