Skip to content

Commit

Permalink
NET-1534:upgrade Caddy to v2.8.4 (#3097)
Browse files Browse the repository at this point in the history
* upgrade Caddy to v2.8.4

* add BATCH_PEER_UPDATE in netmaker.env with default values

* add comment for emqx for caddy upgrade change
  • Loading branch information
yabinma authored Sep 6, 2024
1 parent 481947f commit db4cf1d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
restart: always

caddy:
image: caddy:2.6.2
image: caddy:2.8.4
container_name: caddy
env_file: ./netmaker.env
restart: unless-stopped
Expand Down
8 changes: 6 additions & 2 deletions docker/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ https://api.{$NM_DOMAIN} {
}

# MQ
wss://broker.{$NM_DOMAIN} {
reverse_proxy ws://mq:8883 # For EMQX websockets use `reverse_proxy ws://mq:8083`
broker.{$NM_DOMAIN} {
@ws {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @ws mq:8883 # For EMQX websockets use `reverse_proxy @ws mq:8083`
}
8 changes: 6 additions & 2 deletions docker/Caddyfile-pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ https://api.{$NM_DOMAIN} {
}

# MQ
wss://broker.{$NM_DOMAIN} {
reverse_proxy ws://mq:8883
broker.{$NM_DOMAIN} {
@ws {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @ws mq:8883
}

0 comments on commit db4cf1d

Please sign in to comment.