budibase update

This commit is contained in:
thomas 2022-10-10 22:47:48 +02:00
parent 388865b0d2
commit 1933270b2a
9 changed files with 145 additions and 23 deletions

View file

@ -1 +1,2 @@
/etc/element-web/config.json
/etc/default/budibase-server
/etc/default/budibase-worker

View file

@ -1,7 +1,7 @@
Package: element-web
Package: budibase
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: element-web
Description: budibase

View file

@ -0,0 +1,9 @@
#!/bin/bash
id budibase-server &> /dev/null || useradd budibase-server -r -s /bin/false -d /var/lib/budibase-server
chown -R budibase-server:budibase-server /var/lib/budibase-server
id budibase-worker &> /dev/null || useradd budibase-worker -r -s /bin/false -d /var/lib/budibase-worker
chown -R budibase-worker:budibase-worker /var/lib/budibase-worker

View file

@ -0,0 +1,23 @@
COUCH_DB_URL=http://admin:admin@localhost:5984
WORKER_URL=http://localhost:4002
MINIO_URL=http://localhost:9000
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
BUDIBASE_ENVIRONMENT=prod
PORT=4001
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
LOG_LEVEL=info
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
#ENABLE_ANALYTICS="true"
REDIS_URL=localhost:6379
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
BB_ADMIN_USER_EMAIL=thomas
BB_ADMIN_USER_PASSWORD=thomas
#PLUGINS_DIR=${PLUGINS_DIR}
WORKER_PORT=4002
APP_PORT=4001
DATA_DIR=/root/budibase/packages
NODE_ENV=production
SELF_HOSTED=1
BUDIBASE_ENVIRONMENT=PRODUCTION

View file

@ -0,0 +1,19 @@
CLUSTER_PORT=80
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
MINIO_URL=http://localhost:9000
APPS_URL=http://localhost:4001
COUCH_DB_USERNAME=admin
COUCH_DB_PASSWORD=admin
COUCH_DB_URL=http://admin:admin@localhost:5984
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
REDIS_URL=localhost:6379
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
PORT=4002
WORKER_PORT=4002
APP_PORT=4001
NODE_ENV=production
SELF_HOSTED=1
BUDIBASE_ENVIRONMENT=PRODUCTION

View file

@ -0,0 +1,13 @@
[Unit]
Description=budibase-server
After=network.target
[Service]
EnvironmentFile=/etc/default/budibase-server
ExecStart=/usr/bin/node /opt/budibase/server/dist/index.js
Restart=always
#User=budibase-server
#Group=budibase-server
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,13 @@
[Unit]
Description=budibase-worker
After=network.target
[Service]
EnvironmentFile=/etc/default/budibase-worker
ExecStart=/usr/bin/node /opt/budibase/worker/dist/index.js
Restart=always
#User=budibase-worker
#Group=budibase-worker
[Install]
WantedBy=multi-user.target