have more bundles provide nginx metadata for themselves
This commit is contained in:
parent
2ca14d0f62
commit
6022bac0ef
6 changed files with 63 additions and 29 deletions
|
@ -12,7 +12,7 @@ defaults = {
|
|||
}
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts',
|
||||
'nginx/vhosts/element-web',
|
||||
)
|
||||
def nginx_config(metadata):
|
||||
return {
|
||||
|
|
|
@ -66,7 +66,7 @@ defaults = {
|
|||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts',
|
||||
'nginx/vhosts/gitea',
|
||||
)
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
|
|
|
@ -32,3 +32,28 @@ defaults = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts/jenkins-ci',
|
||||
)
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'jenkins-ci': {
|
||||
'domain': metadata.get('jenkins-ci/domain'),
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://localhost:22010/',
|
||||
},
|
||||
},
|
||||
'website_check_path': '/login',
|
||||
'website_check_string': 'Welcome to Jenkins',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ defaults = {
|
|||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts',
|
||||
'nginx/vhosts/miniflux',
|
||||
)
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
|
|
|
@ -23,3 +23,34 @@ defaults = {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts/travelynx',
|
||||
)
|
||||
def nginx(metadata):
|
||||
if not node.has_bundle('nginx'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'travelynx': {
|
||||
'domain': metadata.get('travelynx/domain'),
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://127.0.0.1:22020',
|
||||
},
|
||||
'/static': {
|
||||
'root': '/opt/travelynx/public',
|
||||
},
|
||||
'/service-worker.js': {
|
||||
'root': '/opt/travelynx/public',
|
||||
},
|
||||
},
|
||||
'website_check_path': '/login',
|
||||
'website_check_string': 'travelynx',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue