From 157c413f672a2ba71490a73993ded7cd1b891033 Mon Sep 17 00:00:00 2001 From: Taehoon Kim <95288696+goathoon@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:47:18 +0900 Subject: [PATCH] feat(infra): add image upload proxy (#1829) --- apps/infra/stage/Caddyfile | 6 ++++++ docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/infra/stage/Caddyfile b/apps/infra/stage/Caddyfile index 4be5657e86..40ce3e0250 100644 --- a/apps/infra/stage/Caddyfile +++ b/apps/infra/stage/Caddyfile @@ -68,9 +68,15 @@ stage.codedang.com { handle /bucket* { uri strip_prefix /bucket + reverse_proxy 127.0.0.1:9000 + } + + handle /console* { + uri strip_prefix /console reverse_proxy 127.0.0.1:9001 } + handle /logs* { reverse_proxy 127.0.0.1:9999 } diff --git a/docker-compose.yml b/docker-compose.yml index 00edc56c29..ff2ae69795 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: - 9001:9001 command: server /data --console-address ":9001" environment: - MINIO_BROWSER_REDIRECT_URL: https://stage.codedang.com/bucket + MINIO_BROWSER_REDIRECT_URL: https://stage.codedang.com/console MINIO_ROOT_USER: skku MINIO_ROOT_PASSWORD: skku1234 volumes: