Compare commits
3 commits
3234cc1d53
...
608e02b1c7
Author | SHA1 | Date | |
---|---|---|---|
608e02b1c7 | |||
5349f4ad88 | |||
904a4d0e40 |
5 changed files with 42 additions and 1 deletions
0
bundles/blog/README.md
Normal file
0
bundles/blog/README.md
Normal file
0
bundles/blog/items.py
Normal file
0
bundles/blog/items.py
Normal file
35
bundles/blog/metadata.py
Normal file
35
bundles/blog/metadata.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
from ipaddress import ip_interface
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
'flask': {
|
||||||
|
'blog' : {
|
||||||
|
'git_url': "https://git.sublimity.de/cronekorkn/flask-blog.git",
|
||||||
|
'port': 5010,
|
||||||
|
'app_module': 'blog',
|
||||||
|
'env': {
|
||||||
|
'DATA_PATH': '/var/blog',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'users': {
|
||||||
|
'blog': {},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'nginx/vhosts',
|
||||||
|
)
|
||||||
|
def nginx(metadata):
|
||||||
|
return {
|
||||||
|
'nginx': {
|
||||||
|
'vhosts': {
|
||||||
|
metadata.get('blog/hostname'): {
|
||||||
|
'content': 'nginx/proxy_pass.conf',
|
||||||
|
'context': {
|
||||||
|
'target': 'http://127.0.0.1:5010',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -106,7 +106,7 @@
|
||||||
},
|
},
|
||||||
'nextcloud': {
|
'nextcloud': {
|
||||||
'hostname': 'cloud.sublimity.de',
|
'hostname': 'cloud.sublimity.de',
|
||||||
'version': '25.0.3',
|
'version': '25.0.4',
|
||||||
'config': {
|
'config': {
|
||||||
'instanceid': 'oci6dw1woodz',
|
'instanceid': 'oci6dw1woodz',
|
||||||
'secret': '!decrypt:encrypt$gAAAAABj96CFynVtEgsje7173zjQAcY7xQG3uyf5cxE-sJAvhyPh_KUykTKdwnExc8NTDJ8RIGUmVfgC6or5crnYaggARPIEg5-Cb0xVdEPPZ3oZ01ImLmynLu3qXT9O8kVM-H21--OKeztMRn7bySsbXdWEGtETFQ==',
|
'secret': '!decrypt:encrypt$gAAAAABj96CFynVtEgsje7173zjQAcY7xQG3uyf5cxE-sJAvhyPh_KUykTKdwnExc8NTDJ8RIGUmVfgC6or5crnYaggARPIEg5-Cb0xVdEPPZ3oZ01ImLmynLu3qXT9O8kVM-H21--OKeztMRn7bySsbXdWEGtETFQ==',
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
'steam',
|
'steam',
|
||||||
'wireguard',
|
'wireguard',
|
||||||
'zfs',
|
'zfs',
|
||||||
|
'blog',
|
||||||
|
'flask',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
||||||
|
@ -35,6 +37,10 @@
|
||||||
'gateway6': 'fe80::1',
|
'gateway6': 'fe80::1',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'blog': {
|
||||||
|
'hostname': 'wiegand.tel',
|
||||||
|
'repo': 'https://git.sublimity.de/cronekorkn/blog.git',
|
||||||
|
},
|
||||||
'bind': {
|
'bind': {
|
||||||
'hostname': 'resolver.name',
|
'hostname': 'resolver.name',
|
||||||
'acme_zone': 'acme.sublimity.de',
|
'acme_zone': 'acme.sublimity.de',
|
||||||
|
|
Loading…
Reference in a new issue