diff --git a/modules/invoicing/module.json b/modules/invoicing/module.json index 9acd9cf..64bb3c0 100644 --- a/modules/invoicing/module.json +++ b/modules/invoicing/module.json @@ -18,8 +18,14 @@ "bucket": "invoicing" }, "route": { - "label": "invoicing", - "port": 80 + "site": { + "label": "invoicing", + "port": 80 + }, + "api": { + "label": "invoicing-api", + "port": 9000 + } } }, "binds": { @@ -63,7 +69,7 @@ "type": "file", "path": "/var/lib/invoicing/api.env", "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",