Skip to content

Commit 66ed77e

Browse files
authored
Merge pull request #268 from swamphacks/feat/infra-asynq-web-ui
feat:added dev asynqmon to docker compose and caddy config
2 parents 26fa847 + 2e11071 commit 66ed77e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

infra/Caddyfile.api

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,28 @@ api.swamphacks.com {
4747
Referrer-Policy "strict-origin-when-cross-origin"
4848
}
4949
}
50+
51+
# Development Asynqmon Web UI
52+
53+
dev-asynqmon.swamphacks.com {
54+
reverse_proxy asynqmon-dev:6767 {
55+
header_up X-Real-IP {remote}
56+
header_up X-Forwarded-For {remote}
57+
header_up X-Forwarded-Port {server_port}
58+
header_up X-Forwarded-Proto {scheme}
59+
}
60+
61+
tls {
62+
dns cloudflare {env.CF_API_TOKEN}
63+
}
64+
65+
encode gzip zstd
66+
67+
header {
68+
Strict-Transport-Security "max-age=31536000"
69+
X-Content-Type-Options "nosniff"
70+
X-Frame-Options "DENY"
71+
Referrer-Policy "strict-origin-when-cross-origin"
72+
}
73+
}
74+

infra/docker-compose.api.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ services:
6868
retries: 5
6969
start_period: 5s
7070

71+
asynqmon-dev:
72+
image: hibiken/asynqmon:latest
73+
platform: linux/amd64
74+
ports:
75+
- "6768:6767"
76+
environment:
77+
- REDIS_ADDR=redis:6380
78+
- PORT=6767
79+
depends_on:
80+
- redis-dev
81+
7182
# ========================
7283
# Production Services
7384
# ========================

0 commit comments

Comments
 (0)