-
i did a quick kubernetes config for apiVersion: apps/v1
kind: Deployment
metadata:
name: imageproxy-deploy
spec:
replicas: 1
selector:
matchLabels:
app: imageproxy
template:
metadata:
labels:
app: imageproxy
spec:
containers:
- name: imageproxy
image: darthsim/imgproxy:latest
ports:
- containerPort: 8080
env:
# DEFAULT CONFIGS
- name: IMGPROXY_MAX_SRC_FILE_SIZE
value: "0"
- name: IMGPROXY_MAX_SRC_RESOLUTION
value: "50"
- name: IMGPROXY_DOWNLOAD_TIMEOUT
value: "10"
- name: IMGPROXY_TTL
value: "31536000"
- name: IMGPROXY_ENABLE_WEBP_DETECTION
value: "true"
- name: IMGPROXY_ENFORCE_WEBP
value: "true"
- name: IMGPROXY_SANITIZE_SVG
value: "true"
- name: IMGPROXY_ALLOWED_SOURCES
value: "gs://my-private-bucket/*"
# LOCAL CONFIG
- name: IMGPROXY_IGNORE_SSL_VERIFICATION
value: "true"
# GCS CONFIGS
- name: IMGPROXY_USE_GCS
value: "true"
- name: IMGPROXY_GCS_KEY
valueFrom:
secretKeyRef:
name: gcs-viewer-json
key: GCS_VIEWER_JSON then if i try access a url like then it work fine But when i setup for instance - name: IMGPROXY_GCS_ENDPOINT
value: "gs://my-private-bucket" i also tryed without the I just can't make it work like i would like for example So my question here is how this parameter work. I couldn't find any example about it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @erwanriou!
|
Beta Was this translation helpful? Give feedback.
-
Amazing @DarthSim I tested it and it work perfectly! Thank you! |
Beta Was this translation helpful? Give feedback.
Hey @erwanriou!
IMGPROXY_GCS_ENDPOINT
specifies a custom endpoint for GSC-compatible storage. For your use case, you need to setIMGPROXY_BASE_URL=gs://my-private-bucket/
. The slash at the end is required since imgproxy just concatenatesIMGPROXY_BASE_URL
and the source image URL provided via imgproxy URL.