mirror of https://github.com/Budibase/budibase.git
16 changed files with 132 additions and 66 deletions
@ -1,14 +1,27 @@ |
|||||
|
# Use the main port in the builder for your self hosting URL, e.g. localhost:10000 |
||||
|
MAIN_PORT=10000 |
||||
|
|
||||
|
# Use this password when configuring your self hosting settings |
||||
|
# This should be updated |
||||
|
HOSTING_KEY=budibase |
||||
|
|
||||
|
# This section contains customisation options |
||||
|
HOSTING_URL=http://localhost |
||||
|
LOGO_URL=https://logoipsum.com/logo/logo-15.svg |
||||
|
HOSTING_URL=http://localhost |
||||
|
|
||||
|
# This section contains all secrets pertaining to the system |
||||
|
# These should be updated |
||||
|
JWT_SECRET=testsecret |
||||
MINIO_ACCESS_KEY=budibase |
MINIO_ACCESS_KEY=budibase |
||||
MINIO_SECRET_KEY=budibase |
MINIO_SECRET_KEY=budibase |
||||
COUCH_DB_PASSWORD=budibase |
COUCH_DB_PASSWORD=budibase |
||||
COUCH_DB_USER=budibase |
COUCH_DB_USER=budibase |
||||
WORKER_API_KEY=budibase |
WORKER_API_KEY=budibase |
||||
BUDIBASE_ENVIRONMENT=PRODUCTION |
|
||||
HOSTING_URL=http://localhost |
# This section contains variables that do not need to be altered under normal circumstances |
||||
LOGO_URL=https://logoipsum.com/logo/logo-15.svg |
|
||||
MAIN_PORT=10000 |
|
||||
APP_PORT=4002 |
APP_PORT=4002 |
||||
WORKER_PORT=4003 |
WORKER_PORT=4003 |
||||
MINIO_PORT=4004 |
MINIO_PORT=4004 |
||||
COUCH_DB_PORT=4005 |
COUCH_DB_PORT=4005 |
||||
JWT_SECRET=testsecret |
BUDIBASE_ENVIRONMENT=PRODUCTION |
||||
|
|||||
@ -1,2 +1,2 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
docker-compose --env-file hosting.properties up |
docker-compose --env-file hosting.properties up --build |
||||
|
|||||
@ -1,4 +1,9 @@ |
|||||
|
const env = require("../environment") |
||||
|
|
||||
module.exports = async (ctx, next) => { |
module.exports = async (ctx, next) => { |
||||
// TODO: need to check the API key provided in the header
|
if (!ctx.request.body.selfHostKey || env.SELF_HOST_KEY !== ctx.request.body.selfHostKey) { |
||||
await next() |
ctx.throw(401, "Deployment unauthorised") |
||||
|
} else { |
||||
|
await next() |
||||
|
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue