bundles/gitea: auto-configure nginx vhost
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
1fb5787807
commit
0d8332ec7e
2 changed files with 18 additions and 5 deletions
|
@ -30,3 +30,21 @@ defaults = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
metadata.get('gitea/domain'): {
|
||||
'proxy': {
|
||||
'/': 'http://127.0.0.1:3000',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -144,11 +144,6 @@ nodes['htz.ex42-1048908'] = {
|
|||
'webroot': '/var/www/franzi.business/_site/',
|
||||
'extras': True,
|
||||
},
|
||||
'git.kunsmann.eu': {
|
||||
'proxy': {
|
||||
'/': 'http://localhost:3000/',
|
||||
},
|
||||
},
|
||||
'jenkins.kunsmann.eu': {
|
||||
'proxy': {
|
||||
'/': 'http://localhost:9000/',
|
||||
|
|
Loading…
Reference in a new issue