Compare commits

...

26 Commits

Author SHA1 Message Date
Moritz 51b24791a4 add alakazam integration file alaconnect.yml
continuous-integration/drone/push Build is passing Details
2024-05-13 17:41:05 +02:00
iexos aa06f74560 add admin promotion to README
continuous-integration/drone/push Build is passing Details
2024-02-13 17:06:16 +01:00
moritz b1609c5ef4 Merge pull request 'chore: publish 2.1.0+v7.30 release' (#1) from simon/wekan:main into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #1
2024-01-31 12:50:53 +00:00
Simon 98d595d287 chore: publish 2.1.0+v7.30 release 2024-01-30 14:59:18 +01:00
Moritz 85c09e0fab chore: publish 2.0.0+v7.10 release
continuous-integration/drone/push Build is passing Details
2023-10-25 18:00:05 +02:00
3wc 53a08095f2 chore: publish 1.0.0+v6.99 release
continuous-integration/drone/push Build is passing Details
2023-09-23 20:46:23 +01:00
Philipp Rothmann a9181c180e chore: publish 0.14.0+v6.99 release
continuous-integration/drone/push Build is failing Details
2023-07-18 13:51:03 +02:00
Moritz bc3b7a4dba fix domain env
continuous-integration/drone/push Build is passing Details
2023-07-10 00:43:59 +02:00
Philipp Rothmann d7a3f874c9 chore: publish 0.13.2+v6.81 release
continuous-integration/drone/push Build is passing Details
2023-06-26 17:57:44 +02:00
Philipp Rothmann 9b84875ea0 chore: formatting 2023-06-26 17:09:43 +02:00
Philipp Rothmann 16753c808a chore: point backup to a volume directory 2023-06-26 17:09:25 +02:00
Philipp Rothmann 16b48136e7 enable mongo logs 2023-06-26 17:09:10 +02:00
Philipp Rothmann 083310a964 fix: remove secret version from abra.sh 2023-06-23 11:42:39 +02:00
Moritz d3e1340e03 chore: publish 0.13.1+v6.81 release
continuous-integration/drone/push Build is passing Details
2023-04-25 12:10:04 +02:00
Moritz 28c8f7539a add auto update and timeout env 2023-04-18 18:22:54 +02:00
Moritz 97a348ce29 add timeout
continuous-integration/drone/push Build is passing Details
2023-04-13 20:36:16 +02:00
Moritz 3d94108785 chore: publish 0.13.0+v6.81 release
continuous-integration/drone/push Build is passing Details
2023-04-05 18:33:11 +02:00
3wc a77f2c1ed9 Switch to self-hosted stack-ssh-deploy image [mass update]
continuous-integration/drone/push Build is passing Details
2023-01-21 11:49:56 -08:00
3wc a07ac5f0df Add drone configs / secrets [mass update]
continuous-integration/drone/push Build is passing Details
2023-01-20 21:32:07 -08:00
3wc f5b210f028 Add CI and catalogue generation [mass update]
continuous-integration/drone/push Build is failing Details
2023-01-20 10:45:33 -08:00
Philipp Rothmann 2d361c154a chore: publish 0.12.0+v6.68 release 2023-01-08 19:50:23 +01:00
Philipp Rothmann 7782fd4d56 chore: publish 0.11.0+v6.67 release 2023-01-06 10:49:38 +01:00
Philipp Rothmann beac62e1c9 chore: publish 0.10.0+v6.60 release 2022-12-02 13:23:07 +01:00
Philipp Rothmann 75bfa3f489 chore: publish 0.9.0+v6.34 release 2022-08-08 11:15:10 +02:00
Philipp Rothmann 79a695c90a chore: publish 0.8.0+v6.31 release 2022-08-04 17:49:22 +02:00
Philipp Rothmann e46525e512 chore: publish 0.7.0+v6.30 release 2022-07-21 13:58:26 +02:00
6 changed files with 94 additions and 18 deletions

41
.drone.yml Normal file
View File

@ -0,0 +1,41 @@
---
kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: wekan
generate_secrets: true
purge: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:
- proxy
environment:
DOMAIN: wekan.swarm-test.autonomic.zone
STACK_NAME: wekan
LETS_ENCRYPT_ENV: production
SECRET_OAUTH2_SECRET_VERSION: v1
ENTRYPOINT_VERSION: v1
SECRET_OAUTH2_SECRET_VERSION: v1
trigger:
branch:
- main
---
kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -1,4 +1,6 @@
TYPE=wekan
TIMEOUT=300
ENABLE_AUTO_UPDATE=true
LETS_ENCRYPT_ENV=production
SECRET_OAUTH2_SECRET_VERSION=v1
@ -7,8 +9,8 @@ COMPOSE_FILE="compose.yml"
# Set this to run mongodb in replicaset mode (needs initialisation!)
# COMPOSE_FILE="${COMPOSE_FILE}:compose.rs.yml"
DOMAIN=board.${DOMAIN}
ROOT_URL=https://board.${DOMAIN}
DOMAIN=wekan.example.com
ROOT_URL=https://wekan.example.com
DEBUG=false
@ -29,7 +31,7 @@ RICHER_CARD_COMMENT_EDITOR=false
OAUTH2_ENABLED=false
# OAUTH2_LOGIN_STYLE=redirect
# OAUTH2_CLIENT_ID=wekan
# OAUTH2_SERVER_URL=https://sso.${DOMAIN}
# OAUTH2_SERVER_URL=https://authentik.example.com
# OAUTH2_AUTH_ENDPOINT=/application/o/authorize/
# OAUTH2_USERINFO_ENDPOINT=/application/o/userinfo/
# OAUTH2_TOKEN_ENDPOINT=/application/o/token/
@ -39,6 +41,7 @@ OAUTH2_ENABLED=false
# OAUTH2_FULLNAME_MAP=given_name
# OAUTH2_EMAIL_MAP=email
# PROPAGATE_OIDC_DATA=true
# OIDC_REDIRECTION_ENABLED=true
### LDAP ###

View File

@ -38,4 +38,16 @@ after mongo conaintainer came up the first time run:
```
abra app run wekan.example.org db mongo
> rs.initiate()
```
```
## Promote user to admin
If using SSO, it might happen that there is no admin user. If so, you can fix it manually in the database:
```
$ abra app run <app-name> db bash
# mongo
> use wekan
> db.users.find({'username': '<your username>'})
> db.users.updateOne({'_id': '<_id from result above>'}, {$set: {'isAdmin': true}})
```

View File

@ -1,2 +1 @@
export SECRET_OAUTH2_SECRET_VERSION=v1
export ENTRYPOINT_VERSION=v2

20
alaconnect.yml Normal file
View File

@ -0,0 +1,20 @@
authentik:
env:
OAUTH2_ENABLED: "true"
OAUTH2_SERVER_URL: https://authentik.example.com
# TODO: set CLIENT_ID as secret
OAUTH2_CLIENT_ID: wekan
uncomment:
- OAUTH2_LOGIN_STYLE
- OAUTH2_AUTH_ENDPOINT
- OAUTH2_USERINFO_ENDPOINT
- OAUTH2_TOKEN_ENDPOINT
- OAUTH2_REQUEST_PERMISSIONS
- OAUTH2_ID_MAP
- OAUTH2_USERNAME_MAP
- OAUTH2_FULLNAME_MAP
- OAUTH2_EMAIL_MAP
- PROPAGATE_OIDC_DATA
- OIDC_REDIRECTION_ENABLED
shared_secrets:
wekan_secret: oauth2_secret

View File

@ -1,8 +1,8 @@
version: '3.8'
services:
db:
image: mongo:4.4
command: mongod --oplogSize 128 --replSet rs0
image: mongo:5.0
command: mongod --oplogSize 128 --quiet
volumes:
- wekan-db:/data/db
networks:
@ -16,15 +16,14 @@ services:
deploy:
labels:
backupbot.backup: "true"
backupbot.backup.pre-hook: "mkdir /tmp/backup/ && mongodump --archive=/tmp/backup/wekan.db"
backupbot.backup.post-hook: "rm -rf /tmp/backup"
backupbot.backup.path: "/tmp/backup/"
backupbot.backup.pre-hook: "mongodump --archive=/data/db/wekan.db"
backupbot.backup.post-hook: "rm -rf /data/db/wekan.db"
backupbot.backup.path: "/data/db/wekan.db"
app:
image: quay.io/wekan/wekan:v6.28
image: quay.io/wekan/wekan:v7.30
environment:
- MONGO_URL
- MONGO_OPLOG_URL
- MONGO_URL=mongodb://db:27017/wekan
- DOMAIN
- ROOT_URL
- DEBUG
@ -33,7 +32,7 @@ services:
- WITH_API
- RICHER_CARD_COMMENT_EDITOR
- CORS
- CORS_ALLOW_HEADERS
- CORS_ALLOW_HEADERS
- CORS_EXPOSE_HEADERS
- PASSWORD_LOGIN_ENABLED
- OAUTH2_ENABLED
@ -51,9 +50,10 @@ services:
- OAUTH2_EMAIL_MAP
- DEFAULT_AUTHENTICATION_METHOD
- PROPAGATE_OIDC_DATA
- OIDC_REDIRECTION_ENABLED
networks:
- internal
- proxy
- internal
- proxy
depends_on:
- db
healthcheck:
@ -83,11 +83,12 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.6.0+v6.28"
- "coop-cloud.${STACK_NAME}.version=2.1.0+v7.30"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
volumes:
wekan-db:
networks:
proxy:
external: true