From 6585f2464a10727eaa501080b240b97545413c09 Mon Sep 17 00:00:00 2001 From: Bram Verhulst Date: Sat, 22 Aug 2026 21:21:30 +0200 Subject: [PATCH] fixxess --- docker-compose.yml | 2 +- nginx/nginx.conf | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index b6a14d4..91c6879 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,7 +57,7 @@ services: SESSION_SECRET: "${SESSION_SECRET:-docker-compose-session-secret-change-me}" COOKIE_SECURE: "${COOKIE_SECURE:-false}" STORAGE_ENDPOINT: "minio:9000" - STORAGE_PUBLIC_ENDPOINT: "" + STORAGE_PUBLIC_ENDPOINT: "${STORAGE_PUBLIC_ENDPOINT}" STORAGE_ACCESS_KEY: "${STORAGE_ACCESS_KEY:-minioadmin}" STORAGE_SECRET_KEY: "${STORAGE_SECRET_KEY:-minioadmin}" STORAGE_BUCKET: "${STORAGE_BUCKET:-gallery-media}" diff --git a/nginx/nginx.conf b/nginx/nginx.conf index dc0fc2f..ab34f1e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -26,4 +26,17 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } +} + +server { + listen 80; + server_name ~^media\.; + + location / { + proxy_pass http://sndit-minio:9000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } \ No newline at end of file