Compare commits

..
1 Commits
Author SHA1 Message Date
marlon b774704518 troubleshoot changes 2026-07-01 18:28:14 -04:00
9 changed files with 35 additions and 80 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest@sha256:fc1fa69bea5528db7ba184297735ac1bbd278720910e4cb1f502de9aee14e228
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: baserow
@@ -25,7 +25,7 @@ kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream@sha256:03ff02d8a5637ea5197fa08929a91dfeeb5e30b1da62b82b6c2a895b170338ca
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
-33
View File
@@ -27,38 +27,5 @@
* For environments with 2GB or less RAM, run `abra app config <app-name>` and uncomment the `For low-resource machines` config block
* More info: https://hub.docker.com/r/baserow/baserow/#scaling-options
## Enable SSO with Authenitk
This is how to configure your Baserow server to accept logins from your Authenitk SSO provider. You need at least an advanced Baserow plan to use this feature.
### Configure Authenitk
**Create Application and Provider**
* Log in as administrator of your Authentik instance
* Go to https://your-authentik-domain/if/admin/#/core/applications and choose *Create with Provider*
* Follow these steps to configure the provider, if a field isn't specified here, you can keep the default value
* Application Name: baserow -> **Next**
* Choose OAuth2/OIDC -> **Next**
* Set Authorization flow: `default-provider-authorization-implicit-consent (Authorize Application)`
* Copy the **Client ID** and **Client Secret**, you'll need them later
* Add Redirect URI: Strict - https://your-baserow-domain/api/sso/oauth2/callback/2/ -> **Next**
* **Note**: You may need to change this URI based your baserow settings later
* **Next** and **Submit**
### Configure Baserow
**Create Baserow SSO Provider**
* Log in as adminsitrator of your Baserow instance
* Go to https://your-baserow-domain/admin/auth-providers and choose *Add Provider*
* Name: `authentik`
* URL: `https://<your-authentik-domain>/application/o/baserow`
* Fill out Client ID and Secret with the copied values from the Authentik provisioning
* At this point, check the `Callback URL` at the bottom of the page, it should be the same as the Redirect URI earlier
* If it's not go back to Authentik and under https://your-authentik-domain/if/admin/#/core/providers edit the Baserow provider to use the Callback URL provided by Baserow
**Disable non-SSO login (Optional)**
* Still under the `Authentication Providers` page, uncheck the email and password authentication option
* You can still login to your admin instance at https://your-baserow-domain/login?noredirect
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
+2 -1
View File
@@ -1 +1,2 @@
export PG_BACKUP_CONFIG_VERSION=v2
export PG_BACKUP_CONFIG_VERSION=v1
export ENTRYPOINT_VERSION=v1
+3 -14
View File
@@ -2,32 +2,21 @@ if [ "$1" == "pre-backup" ]; then
# Remove any existing db dump and then create a new one
rm -rf $DATA_DIR/postgres/postgres-backup
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 2 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 8 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "post-backup" ]; then
# rm -rf $DATA_DIR/postgres/postgres-backup
rm -rf $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "pre-restore" ]; then
pkill -STOP -f "webfrontend"
pkill -STOP -f "celery"
pkill -STOP -f "caddy"
# Disconnect any remaining idle sessions from the 'baserow' database
# This prevents "database is being accessed by other users" errors during pg_restore -c
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD psql -h localhost -U baserow -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'baserow' AND pid <> pg_backend_pid();"
exit
fi
if [ "$1" == "post-restore" ]; then
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 2 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
pkill -CONT -f "webfrontend"
pkill -CONT -f "celery"
pkill -CONT -f "caddy"
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 8 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
exit
fi
+20 -12
View File
@@ -3,21 +3,21 @@ version: "3.8"
services:
app:
image: baserow/baserow:3.0.0@sha256:091db03b9022f0edcd79ebe2fdc3eafd470f2bfaa3bf16b983a32a4ea7707d3e
image: baserow/baserow:2.0.5
networks:
- proxy
environment:
- BASEROW_PUBLIC_URL=https://${DOMAIN}
- SECRET_KEY_FILE=/run/secrets/secret_key
- BASEROW_JWT_SIGNING_KEY_FILE=/run/secrets/jwt_key
- BASEROW_CADDY_ADDRESSES=:80
- BASEROW_CADDY_ADDRESSES=:80
- BASEROW_BUILDER_DOMAINS=${WILDCARD_DOMAIN}
secrets:
- secret_key
- jwt_key
deploy:
restart_policy:
condition: on-failure
condition: none
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
@@ -33,27 +33,35 @@ services:
- "backupbot.backup.pre-hook=/backup.sh pre-backup"
- "backupbot.backup.post-hook=/backup.sh post-backup"
- "backupbot.restore.post-hook=/backup.sh post-restore"
- "coop-cloud.${STACK_NAME}.version=2.4.0+2.4.0"
healthcheck:
test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
- "coop-cloud.${STACK_NAME}.version=2.0.0+2.0.5"
# healthcheck:
# test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
volumes:
- baserow_data:/baserow/data
configs:
- source: backup-postgres
target: /backup.sh
mode: 0777
mode: 0777
- source: entrypoint
target: /custom-entrypoint.sh
mode: 555
entrypoint: /custom-entrypoint.sh
volumes:
baserow_data:
configs:
backup-postgres:
name: ${STACK_NAME}_backup-postgres_${PG_BACKUP_CONFIG_VERSION}
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
entrypoint:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
networks:
proxy:
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -eu
/baserow.sh start
tail -f /dev/null
-3
View File
@@ -1,3 +0,0 @@
See release notes here ->
https://baserow.io/blog/baserow-2-2-release-notes
-1
View File
@@ -1 +0,0 @@
Read the release notes here: https://github.com/baserow/baserow/releases/tag/2.4.0
-14
View File
@@ -1,14 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"packageRules": [
{
"matchDatasources": [
"docker"
],
"pinDigests": true
}
]
}