Skip to content

Commit

Permalink
Summit behind caddy for serving logs, index behind /dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Nov 16, 2024
1 parent 366415a commit a3d863c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
17 changes: 8 additions & 9 deletions test/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
services:
# Legacy
caddy:
image: caddy:2
ports:
- "5000:80"
volumes:
- vessel-state:/vessel
- summit-state:/summit
- ./legacy/Caddyfile:/etc/caddy/Caddyfile
summit:
image: serpentos/summit:legacy
ports:
- "5000:5000"
volumes:
- summit-state:/app/state
- ./legacy/summit/.seed:/app/state/.seed
Expand All @@ -30,13 +36,6 @@ services:
volumes:
- avalanche-state:/app/state
- ./legacy/avalanche/.seed:/app/state/.seed
caddy:
image: caddy:2
ports:
- "5003:80"
volumes:
- vessel-state:/vessel
- ./legacy/Caddyfile:/etc/caddy/Caddyfile
# Rust
# vessel:
# image: serpentos/vessel
Expand Down
18 changes: 16 additions & 2 deletions test/legacy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
:80 {
root * /vessel/public
file_server browse
handle_path /logs/* {
root * /summit/logs
file_server
try_files {path}.gz
header {
Content-Type text/plain
Content-Encoding gzip
}
}
handle_path /dev* {
root * /vessel/public
file_server browse
}
reverse_proxy summit:5000 {
header_down Location "^http:\/\/([^\/]*)(\/.*)$" "http://$1:5000$2"
}
}
2 changes: 1 addition & 1 deletion test/legacy/summit/seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"name": "test-x86_64",
"arch": "x86_64",
"indexURI": "http://caddy/volatile/x86_64/stone.index",
"indexURI": "http://caddy/dev/volatile/x86_64/stone.index",
"remotes": [
{
"name": "volatile",
Expand Down

0 comments on commit a3d863c

Please sign in to comment.