Compare commits
1 commit
7f28000e55
...
2e7bde59b4
Author | SHA1 | Date | |
---|---|---|---|
2e7bde59b4 |
5 changed files with 32 additions and 10 deletions
|
@ -0,0 +1,2 @@
|
|||
JSON=$(cat bundles/build-server/example.json)
|
||||
curl -X POST 'https://build.sublimity.de/crystal?file=procio.cr' -H "Content-Type: application/json" --data-binary @- <<< $JSON
|
|
@ -0,0 +1,8 @@
|
|||
directories = {}
|
||||
|
||||
files = {
|
||||
# '/etc/build-server.json': {
|
||||
# 'owner': 'build-server',
|
||||
# 'content': json.dumps(node.metadata.get('build-server'), indent=4, sort_keys=True, cls=MetadataJSONEncoder)
|
||||
# },
|
||||
}
|
|
@ -3,13 +3,17 @@ from ipaddress import ip_interface
|
|||
defaults = {
|
||||
'flask': {
|
||||
'blog' : {
|
||||
'git_url': "https://git.sublimity.de/cronekorkn/flask-blog.git",
|
||||
'port': 5010,
|
||||
'app_module': 'blog',
|
||||
'git_url': "https://git.sublimity.de/cronekorkn/blog.git",
|
||||
'port': 5000,
|
||||
'app_module': 'ckn_blog',
|
||||
'env': {
|
||||
'CONFIG': '/etc/ckn-blog.json',
|
||||
},
|
||||
},
|
||||
},
|
||||
'users': {
|
||||
'blog': {
|
||||
'home': '/opt/blog',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -22,11 +26,12 @@ def nginx(metadata):
|
|||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
metadata.get('blog/hostname'): {
|
||||
metadata.get('build-server/hostname'): {
|
||||
'content': 'nginx/proxy_pass.conf',
|
||||
'context': {
|
||||
'target': 'http://127.0.0.1:5010',
|
||||
'target': 'http://127.0.0.1:4000',
|
||||
},
|
||||
'check_path': '/status',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -37,6 +37,18 @@
|
|||
'zfs',
|
||||
],
|
||||
'metadata': {
|
||||
'dns': {
|
||||
'wiegand.tel': {
|
||||
'A': {'202.61.255.108'},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
||||
'network': {
|
||||
'internal': {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
'wireguard',
|
||||
'zfs',
|
||||
'blog',
|
||||
'flask',
|
||||
],
|
||||
'metadata': {
|
||||
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
||||
|
@ -37,10 +36,6 @@
|
|||
'gateway6': 'fe80::1',
|
||||
}
|
||||
},
|
||||
'blog': {
|
||||
'hostname': 'wiegand.tel',
|
||||
'repo': 'https://git.sublimity.de/cronekorkn/blog.git',
|
||||
},
|
||||
'bind': {
|
||||
'hostname': 'resolver.name',
|
||||
'acme_zone': 'acme.sublimity.de',
|
||||
|
|
Loading…
Reference in a new issue