netmaker/docker/Caddyfile

52 lines
1.4 KiB
Text
Raw Normal View History

{
2022-12-22 20:11:49 +08:00
# ZeroSSL account
2023-03-28 05:18:55 +08:00
# acme_ca https://acme.zerossl.com/v2/DV90
2022-01-14 04:09:38 +08:00
email YOUR_EMAIL
}
# Dashboard
https://dashboard.NETMAKER_BASE_DOMAIN {
2022-01-14 04:09:38 +08:00
# Apply basic security headers
header {
2022-02-10 16:27:38 +08:00
# Enable cross origin access to *.NETMAKER_BASE_DOMAIN
Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
2022-01-14 04:09:38 +08:00
# Enable HTTP Strict Transport Security (HSTS)
Strict-Transport-Security "max-age=31536000;"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection)
X-Frame-Options "SAMEORIGIN"
# Prevent search engines from indexing
X-Robots-Tag "none"
# Remove the server name
-Server
}
2022-01-14 04:05:16 +08:00
reverse_proxy http://netmaker-ui
}
# API
https://api.NETMAKER_BASE_DOMAIN {
reverse_proxy http://netmaker:8081
}
2022-11-29 01:16:50 +08:00
# STUN
https://stun.NETMAKER_BASE_DOMAIN {
reverse_proxy netmaker:3478
}
2023-03-22 15:00:03 +08:00
# TURN
2023-04-26 18:25:56 +08:00
https://turn.NETMAKER_BASE_DOMAIN {
reverse_proxy turn:3479
}
#TURN API
https://turnapi.NETMAKER_BASE_DOMAIN {
2023-04-26 19:44:08 +08:00
reverse_proxy http://host.docker.internal:8089
2023-03-22 15:00:03 +08:00
}
2022-11-29 01:16:50 +08:00
# MQ
wss://broker.NETMAKER_BASE_DOMAIN {
2023-02-22 15:05:39 +08:00
reverse_proxy ws://mq:8883 # For EMQX websockets use `reverse_proxy ws://mq:8083`
2022-11-29 01:16:50 +08:00
}