Advertisement
Guest User

lemmy + pictrs configuration with object store

a guest
Jun 24th, 2023
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.09 KB | None | 0 0
  1.  pictrs:
  2.     image: asonix/pictrs:0.4.0-rc.7
  3.     # this needs to match the pictrs url in lemmy.hjson
  4.     hostname: pictrs
  5.     # we can set options to pictrs like this, here we set max. image size and forced format for conversion
  6.     # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
  7.     networks:
  8.      - lemmyinternal
  9.       - lemmyexternalproxy
  10.     environment:
  11.      - PICTRS_OPENTELEMETRY_URL=http://otel:4137
  12.       - PICTRS__API_KEY=API_KEY
  13.       - RUST_LOG=debug
  14.       - RUST_BACKTRACE=full
  15.       - PICTRS__MEDIA__VIDEO_CODEC=vp9
  16.       - PICTRS__MEDIA__GIF__MAX_WIDTH=256
  17.       - PICTRS__MEDIA__GIF__MAX_HEIGHT=256
  18.       - PICTRS__MEDIA__GIF__MAX_AREA=65536
  19.       - PICTRS__MEDIA__GIF__MAX_FRAME_COUNT=400
  20.       - PICTRS__STORE__TYPE=object_storage
  21.       - PICTRS__STORE__ENDPOINT=Your Object Store Endpoint
  22.       - PICTRS__STORE__BUCKET_NAME=Your Bucket Name
  23.       - PICTRS__STORE__REGION=Your Bucket Region
  24.       - PICTRS__STORE__USE_PATH_STYLE=false
  25.       - PICTRS__STORE__ACCESS_KEY=Your Access Key
  26.       - PICTRS__STORE__SECRET_KEY=Your Secret Key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement