Add 'allow broken uploads' to config

This option proved useful in debugging and workarounds
This commit is contained in:
2024-04-21 11:55:02 +00:00
parent 1a525a89ff
commit bc982c1c9c
4 changed files with 34 additions and 2 deletions

View File

@ -39,6 +39,10 @@ DB_NAME=szuru
DB_PORT=5432
LOG_SQL=0
# Set true to allow an image to be uploaded despite warnings/errors
# ------------------------------------------------------------------
ALLOW_BROKEN_UPLOADS=false
# Privileges
# ----------
# allowed values: anonymous - regular - power - moderator - administrator

26
README.md Normal file
View File

@ -0,0 +1,26 @@
# Szurubooru
[Szurubooru][szurubooru] is an Image Booru (tag-based image archive) dedicated for small and medium communities, with a rich search and privilege system.
<!-- metadata -->
* **Category**: Apps
* **Status**: 2, beta
* **Image**: [`szurubooru/server`](https://hub.docker.com/r/szurubooru/server) & [`szurubooru/client`](https://hub.docker.com/r/szurubooru/client), 4, upstream
* **Healthcheck**: No
* **Backups**: No
* **Email**: No
* **Tests**: 1
* **SSO**: 0
<!-- endmetadata -->
## Basic usage
1. Set up Docker Swarm and [`abra`][abra]
2. Deploy [`coop-cloud/traefik`][compose-traefik]
3. `abra app new szurubooru`
4. `abra app config YOURAPPDOMAIN`
5. `abra app deploy YOURAPPDOMAIN`
[szurubooru]: https://github.com/rr-/szurubooru
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
[compose-traefik]: https://git.autonomic.zone/coop-cloud/traefik

View File

@ -19,7 +19,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "coop-cloud.${STACK_NAME}.version=0.0.1+2.5"
- "coop-cloud.${STACK_NAME}.version=0.1.0+2.5"
networks:
- internal_network
- proxy
@ -60,6 +60,7 @@ services:
- SMTP_USER
- SMTP_FROM
- CONTACT_EMAIL
- ALLOW_BROKEN_UPLOADS
- PRIVILEGE_CREATE_USER
- PRIVILEGE_LIST_POSTS
- PRIVILEGE_VIEW_POSTS
@ -67,6 +68,7 @@ services:
entrypoint: /entrypoint.sh
networks:
- internal_network
- proxy
db:
image: postgres:11-alpine

View File

@ -21,7 +21,7 @@ convert:
to_mp4: false
# allow posts to be uploaded even if some image processing errors occur
allow_broken_uploads: false
allow_broken_uploads: {{ env "ALLOW_BROKEN_UPLOADS" }}
smtp:
host: {{ env "SMTP_HOST" }}