keycloak, minio and n8n are told their names from their route bindings; mailu takes its domain, site name, website and proxy address as settings and its front's name from its route, and the provisioner reads the domain from the merged config; builder and route-proxy package the controller from the git seat; the applications built outside the mesh say so per container; matrix says which of the world's servers it means; the site module is named website, and the why prose no longer names a name (novox/hq ADR 0155, issues 122 and 134). module check passes over all 77.
71 lines
1.9 KiB
JSON
71 lines
1.9 KiB
JSON
{
|
|
"module": "de-spiegel",
|
|
"version": "1",
|
|
"slug": "spiegel",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"route"
|
|
],
|
|
"contributes": {
|
|
"route": {
|
|
"label": "de-spiegel",
|
|
"endpoint": "web"
|
|
}
|
|
},
|
|
"binds": {
|
|
"route": "/var/lib/de-spiegel/route.json"
|
|
},
|
|
"own-secrets": {
|
|
"smtp-user": "/var/lib/de-spiegel/smtp-user.secret",
|
|
"smtp-pass": "/var/lib/de-spiegel/smtp-pass.secret"
|
|
},
|
|
"listens": [
|
|
{
|
|
"name": "web",
|
|
"port": 35621,
|
|
"protocol": "tcp",
|
|
"from": "mesh",
|
|
"why": "the de-spiegel site and its /contact endpoint over http; its public name is a route grant, and route-proxy reaches it on this published port"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"path": "/var/lib/de-spiegel",
|
|
"mode": "0700"
|
|
},
|
|
{
|
|
"id": "server-env",
|
|
"type": "file",
|
|
"path": "/var/lib/de-spiegel/server.env",
|
|
"mode": "0600",
|
|
"content": "SMTP_AUTH_USER=${secret:smtp-user}\nSMTP_AUTH_PASS=${secret:smtp-pass}\n"
|
|
},
|
|
{
|
|
"id": "net",
|
|
"type": "network",
|
|
"name": "de-spiegel"
|
|
},
|
|
{
|
|
"id": "server",
|
|
"type": "container",
|
|
"name": "de-spiegel",
|
|
"image": "registry-api.novox.be/novox/de-spiegel@sha256:e144b72ce9c145870470d765343549f2c60211728cd118b9ff0e4029f36342ba",
|
|
"network": "de-spiegel",
|
|
"env-file": [
|
|
"/var/lib/de-spiegel/server.env"
|
|
],
|
|
"ports": [
|
|
"35621"
|
|
],
|
|
"secrets-in-environment": "the application's own code reads SMTP_AUTH_USER/PASS from the environment (de-spiegel server/index.js); converting is that repository's change",
|
|
"names-on-purpose": {
|
|
"registry-api.novox.be": "built outside the mesh, from the application's own repository, and pulled from the registry that built it; moves when that repository is a build source on the git seat (novox/hq ADR 0155, issue 122)"
|
|
}
|
|
}
|
|
]
|
|
}
|