bundles/gitea: auto-configure nginx vhost
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-08-20 15:49:11 +02:00
parent 1fb5787807
commit 0d8332ec7e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 18 additions and 5 deletions

View file

@ -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',
},
},
},
},
}

View file

@ -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/',