Compare commits
4 Commits
1.5.0+2024
...
feat/lang
| Author | SHA1 | Date | |
|---|---|---|---|
| 0dc4c7f70f | |||
| 2590fd1343 | |||
| 1347ac8984 | |||
| fffc1c1459 |
@ -24,6 +24,7 @@ steps:
|
||||
SECRET_SMTP_PASSWORD_VERSION: v1
|
||||
PRETIX_CONFIG_VERSION: v1
|
||||
PG_BACKUP_VERSION: v1
|
||||
SECRET_ADMIN_PASS_VERSION: v1
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
@ -7,9 +7,11 @@ DOMAIN=pretix.example.com
|
||||
|
||||
LETS_ENCRYPT_ENV=production
|
||||
ENABLE_BACKUPS=true
|
||||
POST_DEPLOY_CMDS="app change_admin_pass"
|
||||
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
SECRET_DJANGO_SECRET_KEY_VERSION=v1
|
||||
SECRET_ADMIN_PASS_VERSION=v1
|
||||
|
||||
SECRET_SMTP_PASSWORD_VERSION=v1
|
||||
SMTP_FROM=hello@localhost
|
||||
|
||||
12
abra.sh
12
abra.sh
@ -1,8 +1,16 @@
|
||||
export PRETIX_CONFIG_VERSION=v1
|
||||
export PRETIX_CONFIG_VERSION=v2
|
||||
export CRON_ENTRYPOINT_VERSION=v1
|
||||
export DB_ENTRYPOINT_VERSION=v2
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
change_adminpass(){
|
||||
python -m django changepassword admin@localhost
|
||||
password=$(cat /run/secrets/admin_pass)
|
||||
~/src/manage.py shell -c """
|
||||
from django.contrib.auth import get_user_model
|
||||
UserModel = get_user_model()
|
||||
u = UserModel.objects.get(email='admin@localhost')
|
||||
u.set_password('$password')
|
||||
u.save()
|
||||
"""
|
||||
echo "Changed admin password"
|
||||
}
|
||||
|
||||
10
compose.yml
10
compose.yml
@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: 'pretix/standalone:2024.11.0'
|
||||
image: 'pretix/standalone:2025.5.0'
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@ -16,6 +16,7 @@ services:
|
||||
- db_password
|
||||
- smtp_password
|
||||
- django_secret_key
|
||||
- admin_pass
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
@ -25,7 +26,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.5.0+2024.11.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.1.0+2025.5.0"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
|
||||
interval: 30s
|
||||
@ -66,7 +67,7 @@ services:
|
||||
backupbot.restore.post-hook: '/pg_backup.sh restore'
|
||||
|
||||
redis:
|
||||
image: redis:7.0.10-alpine
|
||||
image: redis:8.0.2-alpine
|
||||
volumes:
|
||||
- "redis:/data"
|
||||
healthcheck:
|
||||
@ -127,3 +128,6 @@ secrets:
|
||||
django_secret_key:
|
||||
external: true
|
||||
name: ${STACK_NAME}_django_secret_key_${SECRET_DJANGO_SECRET_KEY_VERSION}
|
||||
admin_pass:
|
||||
external: true
|
||||
name: ${STACK_NAME}_admin_pass_${SECRET_ADMIN_PASS_VERSION}
|
||||
|
||||
@ -42,9 +42,6 @@ debug=off
|
||||
location=redis://redis:6379/1
|
||||
sessions=true
|
||||
|
||||
[languages]
|
||||
enabled=en,de
|
||||
|
||||
[celery]
|
||||
backend=redis://redis:6379/1
|
||||
broker=redis://redis:6379/2
|
||||
|
||||
1
release/2.0.0+2025.1.0
Normal file
1
release/2.0.0+2025.1.0
Normal file
@ -0,0 +1 @@
|
||||
New secret ADMIN_PASS which will be used to automatically replace the insecure default password
|
||||
Reference in New Issue
Block a user