17 Commits

Author SHA1 Message Date
c5965f4193 chore: publish 1.0.0+v4.7.0 release 2026-04-10 14:24:08 -04:00
855cd3407b update create tables command in readme 2026-04-10 14:19:14 -04:00
088f525ef8 force nginx to resolve the domain for liberaforms, previously it could use stale IP addresses 2026-04-10 14:19:01 -04:00
bae1bdbcf3 update comments in .env 2026-04-10 14:18:30 -04:00
447c38413a comply with abra, movie nginx to "proxy" service and liberaforms to "app" service 2026-04-10 14:18:15 -04:00
83ba27244e Update README.md 2026-04-10 17:25:59 +00:00
e54a2c3d09 Merge pull request 'chore: Configure Renovate' (#3) from renovate/configure into main
Reviewed-on: #3
2026-03-24 22:52:45 +00:00
bc3ad033e5 Add renovate.json 2026-03-10 17:52:13 +00:00
fa23e06a56 chore: publish 0.6.0+4.6.1 release 2026-01-23 11:16:53 -05:00
311b99e322 Update README.md 2026-01-23 16:08:49 +00:00
328dfcd2f5 Merge pull request 'cryptosecret' (#2) from cryptosecret into main
Reviewed-on: #2
Issue: #1
2026-01-23 16:02:23 +00:00
c6de93d2da bugfix, tested working 2025-10-29 16:11:24 -04:00
b3e74fa7ef generate and manage CRYPTO_KEY outside of abra 2025-10-29 15:03:23 -04:00
59171ec812 chore: publish 0.5.0+4.6.1 release
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-10-29 13:55:11 -04:00
c9644d39f2 update readme
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-29 13:44:44 -04:00
09e2b37332 add gen_key command 2025-10-29 13:18:37 -04:00
72d3dbe370 Update README.md
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-29 16:40:13 +00:00
9 changed files with 77 additions and 71 deletions

View File

@ -2,50 +2,36 @@ TYPE=liberaforms
DOMAIN=liberaforms.example.com
LETS_ENCRYPT_ENV=production
#==============================================================================
# SECRETS
#==============================================================================
# Secrets
SECRET_SECRET_KEY_VERSION=v1
SECRET_DB_PASSWORD_VERSION=v1
SECRET_CRYPTO_KEY_VERSION=v1
CRYPTO_KEY_VERSION=v1 # This secret is managed in the entrypoint, not as a docker secret
#==============================================================================
# ADMINISTRATION
#==============================================================================
# Administration
ADMIN_USER='you@example.com'
DEFAULT_LANGUAGE='en'
DEFAULT_TIMEZONE="America/New_York"
ENABLE_RSS_FEED=True
#==============================================================================
# SECURITY
#==============================================================================
# Security
E2EE_MODE=ENABLED_BY_DEFAULT
TOKEN_EXPIRATION=604800 # 7 days in seconds
#==============================================================================
# FILE UPLOADS
#==============================================================================
# File Uploads
ENABLE_UPLOADS=True
TOTAL_UPLOADS_LIMIT="1 GB"
DEFAULT_USER_UPLOADS_LIMIT="50 MB"
MAX_MEDIA_SIZE=512000 # 500 KB
MAX_ATTACHMENT_SIZE=1572864 # 1.5 MB
#==============================================================================
# PERFORMANCE & MONITORING
#==============================================================================
# Performance and Monitoring
ENABLE_PROMETHEUS_METRICS=False
#GUNICORN_WORKERS= # Default: 3
#==============================================================================
# NOTIFICATIONS
#==============================================================================
# Email notifications
#ALERT_MAILS=["your_email_address", "another_email_address"]
#==============================================================================
# LDAP
#==============================================================================
#LDAP_SERVER=ldap://localhost
#LDAP_BIND_ACCOUNT="cn=nobody,dc=example,dc=com"
#LDAP_USER_DN_LIST=["uid=%uid,ou=users,o=company,dc=example,dc=com"]

View File

@ -1,11 +1,11 @@
# liberaforms PRE-Release, testing
# liberaforms
> Ethical form software
<!-- metadata -->
- **Category**: Apps
- **Status**: 0
- **Status**: 2
- **Image**: [`liberaforms`](https://fung.uy/mycosystems/-/packages/container/liberaforms/), 1
- **Healthcheck**: Yes
- **Backups**: Yes
@ -17,10 +17,16 @@
## Quick start
- `abra app new liberaforms --secrets`
- Set an admin email address `abra app config <domain-name>`
- `abra app deploy <domain-name>`
- Create tables `abra app cmd <domain-name> forms setup_db` more info in [liberaforms docs](https://codeberg.org/LiberaForms/server/src/branch/main/docs/docker.md#create-the-database)
- `abra app new liberaforms`
- Generate secrets
- `abra app secret g <domain-name> --all`
- Set an admin email address
- `abra app config <domain-name>`
- Deploy
- `abra app deploy <domain-name>`
- Create tables
- `abra app cmd <domain-name> app setup_db`
> more info in [liberaforms docs](https://codeberg.org/LiberaForms/server/src/branch/main/docs/docker.md#create-the-database)
## Admin account setup

View File

@ -40,4 +40,4 @@ setup_db() {
fi
echo "Database setup complete. <3"
}
}

View File

@ -4,36 +4,7 @@ version: "3.8"
services:
app:
image: nginx:stable
networks:
- internal
- proxy
volumes:
- uploads:/liberaforms/uploads:ro
- static:/liberaforms/static:ro
configs:
- source: nginx_conf
mode: 555
target: /etc/nginx/conf.d/default.conf
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "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=wip"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
forms:
image: fung.uy/mycosystems/liberaforms:v4.6.1
image: fung.uy/mycosystems/liberaforms:v4.7.0
configs:
- source: entrypoint
mode: 555
@ -59,7 +30,6 @@ services:
- ROOT_USER=${ADMIN_USER}
- TMP_DIR=/tmp
- SECRET_KEY_FILE=/run/secrets/secret_key
- CRYPTO_KEY_FILE=/run/secrets/crypto_key
- SESSION_TYPE=filesystem
- LOG_LEVEL=INFO
- LOG_DIR=/app/logs
@ -86,23 +56,53 @@ services:
- LDAP_MAIL_ATTRIB
- LDAP_RECOVER_PASSWD_URL
- E2EE_MODE
- CRYPTO_KEY_VERSION
deploy:
labels:
backupbot.backup: "true"
backupbot.backup.volumes.uploads: "true"
backupbot.backup.volumes.log: "false"
backupbot.backup.volumes.static: "false"
- "coop-cloud.${STACK_NAME}.version=1.0.0+v4.7.0"
- "backupbot.backup=true"
- "backupbot.backup.volumes.uploads=true"
- "backupbot.backup.volumes.log=false"
- "backupbot.backup.volumes.static=false"
volumes:
- uploads:/app/uploads
- log:/app/logs
- static:/app/liberaforms/static
- cryptokey:/cryptokey
secrets:
- db_password
- secret_key
- crypto_key
networks:
- internal
proxy:
image: nginx:stable
networks:
- internal
- proxy
volumes:
- uploads:/liberaforms/uploads:ro
- static:/liberaforms/static:ro
configs:
- source: nginx_conf
mode: 555
target: /etc/nginx/conf.d/default.conf
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "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}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
db:
image: postgres:17
configs:
@ -122,7 +122,7 @@ services:
labels:
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.db.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
backupbot.restore.post-hook: "/pg_backup.sh restore"
volumes:
- db:/var/lib/postgresql/data
secrets:
@ -137,15 +137,13 @@ secrets:
secret_key:
external: true
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
crypto_key:
external: true
name: ${STACK_NAME}_crypto_key_${SECRET_CRYPTO_KEY_VERSION}
volumes:
uploads:
static:
log:
db:
cryptokey:
networks:
@ -163,4 +161,4 @@ configs:
file: nginx.conf
pg_backup:
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
file: pg_backup.sh
file: pg_backup.sh

View File

@ -25,8 +25,12 @@ file_env() {
}
file_env "DB_PASSWORD"
file_env "CRYPTO_KEY"
file_env "SECRET_KEY"
file_env "LDAP_BIND_PASSWORD"
if [ ! -f "/cryptokey/$CRYPTO_KEY_VERSION" ]; then
flask cryptokey create > /cryptokey/$CRYPTO_KEY_VERSION
fi
export CRYPTO_KEY=`cat /cryptokey/$CRYPTO_KEY_VERSION`
/usr/bin/supervisord -n

View File

@ -2,12 +2,16 @@ server {
listen 80;
server_name localhost;
resolver 127.0.0.11 valid=10s;
client_max_body_size 2m;
add_header Referrer-Policy "origin-when-cross-origin";
add_header X-Content-Type-Options nosniff;
location / {
set $upstream_app http://app:5000;
location /static/ {
alias /liberaforms/static/;
}
@ -23,7 +27,7 @@ server {
location /metrics {
return 404;
}
proxy_pass http://forms:5000;
proxy_pass $upstream_app;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;

1
release/0.5.0+4.6.1 Normal file
View File

@ -0,0 +1 @@
add key generation steps to support file uploads in forms.

1
release/1.0.0+v4.7.0 Normal file
View File

@ -0,0 +1 @@
Some release testing has been conducted but this latest version changes the compose layout, please take a backup before proceeding.

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}