Skip to content

Commit 8e5813a

Browse files
authored
fix: replace nginx proxy with caddy (#2042)
1 parent 3e1edc7 commit 8e5813a

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

.devcontainer/caddy/Caddyfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:3000 {
2+
rewrite * /api{uri}
3+
reverse_proxy core:3000
4+
}

.devcontainer/docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ services:
185185
ports:
186186
- "1080:1080"
187187

188-
nginx:
189-
image: nginx:1.25-alpine
190-
hostname: nginx
188+
caddy:
189+
image: caddy:2
190+
hostname: caddy
191+
volumes:
192+
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
193+
ports:
194+
- "3000:3000"
191195
depends_on:
192196
- core
193-
ports:
194-
- "3000:3000" # expose nginx on localhost:3000
195-
volumes:
196-
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
197197
restart: unless-stopped
198198

199199
volumes:

src/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const CORS_ORIGIN_REGEX = process.env.CORS_ORIGIN_REGEX;
7575
* }
7676
* >
7777
*/
78-
export const PUBLIC_URL = new URL(process.env.PUBLIC_URL ?? HOST);
78+
export const PUBLIC_URL = new URL(process.env.CLIENT_HOST ?? HOST);
7979

8080
/**
8181
* GRAASP FILE STORAGE CONFIG

0 commit comments

Comments
 (0)