invoicing: the photos lessons, applied before its window
The mongo credential authenticates against its own database and the database is the granted one (mesh_novox_invoice), not the contributed name the provisioner ignores. Same for the store: the key is sealed to the derived bucket (mesh-novox-invoice) — the data mirrors in during the window, the ncloud/photos pattern. And the api gets the route contribution it always needed: invoicing-api.novox.be is today a traefik container label, invisible to every file survey, and it must be a grant before the edge can ever flip.
This commit is contained in:
@@ -18,8 +18,14 @@
|
|||||||
"bucket": "invoicing"
|
"bucket": "invoicing"
|
||||||
},
|
},
|
||||||
"route": {
|
"route": {
|
||||||
"label": "invoicing",
|
"site": {
|
||||||
"port": 80
|
"label": "invoicing",
|
||||||
|
"port": 80
|
||||||
|
},
|
||||||
|
"api": {
|
||||||
|
"label": "invoicing-api",
|
||||||
|
"port": 9000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binds": {
|
"binds": {
|
||||||
@@ -63,7 +69,7 @@
|
|||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "/var/lib/invoicing/api.env",
|
"path": "/var/lib/invoicing/api.env",
|
||||||
"mode": "0600",
|
"mode": "0600",
|
||||||
"content": "NODE_ENV=production\nPORT=9000\nMONGO_URL=mongodb://${bound:mongodb-database:as}:${secret:mongodb-database}@${bound:mongodb-database:at}:${bound:mongodb-database:port}/invoicing?authSource=admin\nMINIO_BUCKET=invoicing\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\n"
|
"content": "NODE_ENV=production\nPORT=9000\nMONGO_URL=mongodb://${bound:mongodb-database:as}:${secret:mongodb-database}@${bound:mongodb-database:at}:${bound:mongodb-database:port}/${bound:mongodb-database:as}?authSource=${bound:mongodb-database:as}\nMINIO_BUCKET=mesh-novox-invoice\nMINIO_ENDPOINT=${bound:s3-bucket:at}\nMINIO_PORT=${bound:s3-bucket:port}\nMINIO_ACCESSKEY=${bound:s3-bucket:as}\nMINIO_SECRET=${secret:s3-bucket}\n"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "net",
|
"id": "net",
|
||||||
|
|||||||
Reference in New Issue
Block a user