mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-05 20:54:18 +08:00
NET-1534:upgrade Caddy to v2.8.4 (#3097)
* upgrade Caddy to v2.8.4 * add BATCH_PEER_UPDATE in netmaker.env with default values * add comment for emqx for caddy upgrade change
This commit is contained in:
parent
481947fb5c
commit
db4cf1d1fd
3 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue