bundles/nginx: rename 'proxy' metadata to 'locations', support more generic options, move extras files to metadata
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
a3a228fc2d
commit
b5ab21549d
25 changed files with 164 additions and 144 deletions
|
@ -261,18 +261,35 @@ nodes['htz.ex42-1048908'] = {
|
|||
'vhosts': {
|
||||
# TODO maybe some of this can be moved to a bundle?
|
||||
'dav.kunsmann.eu': {
|
||||
'extras': True,
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://[::1]:22050',
|
||||
'auth': {
|
||||
'file': '/etc/radicale/htpasswd',
|
||||
},
|
||||
'proxy_set_header': {
|
||||
'X-Remote-User': '$remote_user',
|
||||
},
|
||||
},
|
||||
'/.web/': {
|
||||
'target': 'http://[::1]:22050',
|
||||
}
|
||||
},
|
||||
},
|
||||
'daskritzelt-redirect': {
|
||||
'domain': 'die-brontosaurier-waren-es.org',
|
||||
'ssl': False, # TODO enable ssl once domain transfer is done
|
||||
'extras': True,
|
||||
'ssl': None,
|
||||
'locations': {
|
||||
'/': {
|
||||
'redirect': 'https://twitter.com/daskritzelt/status/1259167444373028864',
|
||||
},
|
||||
},
|
||||
},
|
||||
'dimension.franzi.business': {
|
||||
'extras': True,
|
||||
'do_not_set_content_security_headers': True,
|
||||
'max_body_size': '50M',
|
||||
'proxy': {
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://127.0.0.1:8184',
|
||||
},
|
||||
|
@ -280,10 +297,37 @@ nodes['htz.ex42-1048908'] = {
|
|||
},
|
||||
'franzi.business': {
|
||||
'webroot': '/var/www/franzi.business/_site/',
|
||||
'extras': True,
|
||||
'locations': {
|
||||
'/.well-known/matrix/client': {
|
||||
'return': json_dumps({
|
||||
'm.homeserver': {
|
||||
'base_url': 'https://matrix.franzi.business',
|
||||
},
|
||||
'm.identity_server': {
|
||||
'base_url': 'https://matrix.org',
|
||||
},
|
||||
'im.vector.riot.jitsi': {
|
||||
'preferredDomain': 'meet.ffmuc.net',
|
||||
},
|
||||
}, sort_keys=True),
|
||||
'additional_config': {
|
||||
'default_type application/json',
|
||||
'add_header Access-Control-Allow-Origin *',
|
||||
},
|
||||
},
|
||||
'/.well-known/matrix/server': {
|
||||
'return': json_dumps({
|
||||
'm.server': 'https://matrix.franzi.business',
|
||||
}, sort_keys=True),
|
||||
'additional_config': {
|
||||
'default_type application/json',
|
||||
'add_header Access-Control-Allow-Origin *',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'jenkins.kunsmann.eu': {
|
||||
'proxy': {
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://localhost:22010/',
|
||||
},
|
||||
|
@ -293,10 +337,58 @@ nodes['htz.ex42-1048908'] = {
|
|||
},
|
||||
'kunbox.net': {},
|
||||
'kunsmann.eu': {
|
||||
'extras': True,
|
||||
'locations': {
|
||||
'/': {
|
||||
'redirect': 'https://franzi.business$request_uri',
|
||||
},
|
||||
'/.well-known/openpgpkey': {
|
||||
'alias': '/var/www/kunsmann.eu/.well-known/openpgpkey/',
|
||||
'additional_config': {
|
||||
'default_type application/octet-stream',
|
||||
'add_header Access-Control-Allow-Origin *',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'matrix.franzi.business': {
|
||||
'extras': True,
|
||||
'locations': {
|
||||
'/_matrix': {
|
||||
'target': 'http://[::1]:20080',
|
||||
},
|
||||
'/_matrix/media': {
|
||||
'target': 'http://localhost:20090',
|
||||
'client_max_body_size': '500M',
|
||||
},
|
||||
'/_synapse': {
|
||||
'target': 'http://[::1]:20080',
|
||||
},
|
||||
'/.well-known/matrix/client': {
|
||||
'return': json_dumps({
|
||||
'm.homeserver': {
|
||||
'base_url': 'https://matrix.franzi.business',
|
||||
},
|
||||
'm.identity_server': {
|
||||
'base_url': 'https://matrix.org',
|
||||
},
|
||||
'im.vector.riot.jitsi': {
|
||||
'preferredDomain': 'meet.ffmuc.net',
|
||||
},
|
||||
}, sort_keys=True),
|
||||
'additional_config': {
|
||||
'default_type application/json',
|
||||
'add_header Access-Control-Allow-Origin *',
|
||||
},
|
||||
},
|
||||
'/.well-known/matrix/server': {
|
||||
'return': json_dumps({
|
||||
'm.server': 'https://matrix.franzi.business',
|
||||
}, sort_keys=True),
|
||||
'additional_config': {
|
||||
'default_type application/json',
|
||||
'add_header Access-Control-Allow-Origin *',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'mta-sts': {
|
||||
'domain': 'mta-sts.mx0.kunbox.net',
|
||||
|
@ -322,14 +414,14 @@ nodes['htz.ex42-1048908'] = {
|
|||
'website_check_string': 'login',
|
||||
},
|
||||
'rspamd.mx0.kunbox.net': {
|
||||
'proxy': {
|
||||
'locations': {
|
||||
'/': {
|
||||
'target': 'http://localhost:11334/',
|
||||
},
|
||||
},
|
||||
},
|
||||
# 'travelynx.franzi.business': {
|
||||
# 'proxy': {
|
||||
# 'locations': {
|
||||
# '/': {
|
||||
# 'target': 'http://127.0.0.1:22020',
|
||||
# },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue