Skip to content

apply custom rules #3

Closed Answered by shinsenter
boardmain asked this question in Q&A
Discussion options

You must be logged in to vote

@boardmain

You need to add your S3 bucket in the $origin_server block of imgproxy.conf:

map $uri $origin_server
{
    default         'local://';

    # your desired path @s3img and the bucket will be here
    ~^/@s3img/      's3://BUCKETNAME';
}

Then in the docker-compose.yml, please uncomment S3 setting lines within environment key:

services:
  imgproxy:
    environment:
      ### External source (S3)
      ### See: https://docs.imgproxy.net/serving_files_from_s3
      IMGPROXY_USE_S3: "true"
      IMGPROXY_S3_REGION: "us-east-2"
      IMGPROXY_S3_ENDPOINT: "<your endpoint>"
      AWS_ACCESS_KEY_ID: "<your id>"
      AWS_SECRET_ACCESS_KEY: "<your key>"

Then start the docker after updati…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shinsenter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants