29 lines
883 B
YAML
29 lines
883 B
YAML
# https://github.com/willnorris/imageproxy
|
|
|
|
version: "3"
|
|
services:
|
|
imageproxy:
|
|
image: ghcr.io/willnorris/imageproxy
|
|
environment:
|
|
AWS_ACCESS_KEY_ID: access_key_id
|
|
AWS_SECRET_KEY: secret_key
|
|
IMAGEPROXY_ADDR: 0.0.0.0:8080
|
|
IMAGEPROXY_BASEURL: http://127.0.0.1:8080
|
|
IMAGEPROXY_CACHE: s3://region/bucket/folder?endpoint=s3.example.com&disableSSL=0&s3ForcePathStyle=1
|
|
# IMAGEPROXY_REFERERS: "*.example.com,*.example.cn" # 防盗链
|
|
# IMAGEPROXY_ALLOWHOSTS: "*.example.com"
|
|
# IMAGEPROXY_DENYHOSTS: "*.example.com"
|
|
# IMAGEPROXY_CONTENTTYPES: "image/*"
|
|
# IMAGEPROXY_SIGNATUREKEY: "secretKey"
|
|
# IMAGEPROXY_SCALEUP: "true" # 是否允许放大图片
|
|
ports:
|
|
- "8080:8080"
|
|
restart: unless-stopped
|
|
networks:
|
|
nginx:
|
|
aliases:
|
|
- image-proxy
|
|
|
|
networks:
|
|
nginx:
|
|
external: true |