Skip to content

Commit d5816e0

Browse files
committed
Setup: Update compose.yaml defaults for the Raspberry Pi photoprism#4414 photoprism#5100
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent f1cfe8d commit d5816e0

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

setup/nas/raspberry-pi/cloud-init/user-data

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ write_files:
246246
PHOTOPRISM_SITE_URL: "https://photoprism-pi.local/"
247247
PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
248248
PHOTOPRISM_ORIGINALS_LIMIT: 5000
249-
PHOTOPRISM_HTTP_COMPRESSION: "none"
250-
PHOTOPRISM_WORKERS: 2
249+
PHOTOPRISM_RESOLUTION_LIMIT: 300
250+
PHOTOPRISM_HTTP_COMPRESSION: "gzip"
251+
PHOTOPRISM_WORKERS: 3
251252
PHOTOPRISM_LOG_LEVEL: "info"
253+
PHOTOPRISM_TRACE: "false"
252254
PHOTOPRISM_READONLY: "false"
253255
PHOTOPRISM_EXPERIMENTAL: "false"
254256
PHOTOPRISM_DISABLE_CHOWN: "false"
@@ -259,19 +261,26 @@ write_files:
259261
PHOTOPRISM_DISABLE_CLASSIFICATION: "false"
260262
PHOTOPRISM_DISABLE_RAW: "false"
261263
PHOTOPRISM_RAW_PRESETS: "false"
262-
PHOTOPRISM_JPEG_QUALITY: 85
263-
PHOTOPRISM_DETECT_NSFW: "false"
264-
PHOTOPRISM_UPLOAD_NSFW: "true"
264+
PHOTOPRISM_JPEG_QUALITY: 82
265+
PHOTOPRISM_FFMPEG_SIZE: 1920
266+
PHOTOPRISM_AUTO_INDEX: 300 # delay before automatically indexing files in SECONDS when uploading via WebDAV (-1 to disable)
267+
PHOTOPRISM_AUTO_IMPORT: -1 # delay before automatically importing files in SECONDS when uploading via WebDAV (-1 to disable)
268+
PHOTOPRISM_DETECT_NSFW: "false" # automatically flags photos as private that MAY be offensive (requires TensorFlow)
269+
PHOTOPRISM_UPLOAD_NSFW: "true" # allow uploads that MAY be offensive
270+
PHOTOPRISM_UPLOAD_ALLOW: "" # restricts uploads to these file types (comma-separated list of EXTENSIONS; leave blank to allow all)
271+
PHOTOPRISM_UPLOAD_ARCHIVES: "true" # allows upload of zip archives (will be extracted before import)
272+
PHOTOPRISM_UPLOAD_LIMIT: 10000 # maximum total size of uploaded files in MB (1-100000; -1 to disable)
273+
PHOTOPRISM_SIDECAR_YAML: "false" # creates YAML sidecar files to back up picture metadata
274+
PHOTOPRISM_INDEX_SCHEDULE: "" # indexing SCHEDULE in cron format (e.g. "@every 3h" for every 3 hours; "" to disable)
275+
PHOTOPRISM_BACKUP_ALBUMS: "true" # creates YAML files to back up album metadata
276+
PHOTOPRISM_BACKUP_DATABASE: "true" # creates regular backups based on the configured schedule
277+
PHOTOPRISM_BACKUP_SCHEDULE: "daily" # backup SCHEDULE in cron format (e.g. "0 12 * * *" for daily at noon) or at a random time (daily, weekly)
265278
PHOTOPRISM_DATABASE_DRIVER: "mysql"
266279
PHOTOPRISM_DATABASE_SERVER: "mariadb:3306"
267280
PHOTOPRISM_DATABASE_NAME: "photoprism"
268281
PHOTOPRISM_DATABASE_USER: "photoprism"
269282
PHOTOPRISM_DATABASE_PASSWORD: "insecure"
270-
PHOTOPRISM_INIT: "gpu"
271-
PHOTOPRISM_FFMPEG_ENCODER: "software"
272-
PHOTOPRISM_FFMPEG_BITRATE: "32"
273-
PHOTOPRISM_UID: 1000
274-
PHOTOPRISM_GID: 1000
283+
PHOTOPRISM_INIT: "yt-dlp"
275284
working_dir: "/photoprism"
276285
volumes:
277286
- "/opt/photoprism/storage:/photoprism/storage"

0 commit comments

Comments
 (0)