Skip to content

Commit 37e8ca9

Browse files
committed
🥫 🧀 🍣 環境変数で reverse proxy の向き先を変更できるように
1 parent d73cae2 commit 37e8ca9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Caddyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
encode zstd gzip
77

88
handle_path /api/* {
9-
reverse_proxy traq-ing-server:8080
9+
reverse_proxy {$SERVER_ORIGIN}
1010
}
1111

1212
route {

docker-compose.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
watch:
1414
- path: ./Caddyfile
1515
action: rebuild
16+
environment:
17+
- SERVER_ORIGIN=traq-ing-server:8080
1618
traq-ing-server:
1719
container_name: traq-ing-server
1820
build:

0 commit comments

Comments
 (0)