2026-05-21 16:37:58 +02:00
|
|
|
server {
|
|
|
|
|
listen 443 ssl;
|
|
|
|
|
http2 on;
|
refactor(dns): rename frost.wbd-rd.nl → sta.wbd-rd.nl; drop redundant portainer.wbd-rd.nl
Match the short-functional naming convention used by the other vhosts
(git, auth, dash, flow, ml, hub, ops, mq, ci, mqtt). FROST implements
OGC SensorThings API, so `sta` is the natural fit.
portainer.wbd-rd.nl is dropped from deploy.sh HOSTS — there is no
nginx vhost for it; portainer is already served via ops.wbd-rd.nl.
DNS prereq for first deploy is now: create one new A record for
sta.wbd-rd.nl → cloud public IP. All other short subdomains already
point correctly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 16:46:32 +02:00
|
|
|
server_name sta.wbd-rd.nl;
|
2026-05-21 16:37:58 +02:00
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/infra/fullchain.pem;
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/infra/privkey.pem;
|
|
|
|
|
|
|
|
|
|
# FROST REST + admin UI
|
|
|
|
|
location /FROST-Server {
|
|
|
|
|
proxy_pass http://frost-http:8080;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_read_timeout 60s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# SensorThings MQTT-over-WebSocket
|
|
|
|
|
location /mqtt {
|
|
|
|
|
proxy_pass http://frost-mqtt:9876;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_read_timeout 3600s; # long-lived MQTT WS sessions
|
|
|
|
|
proxy_send_timeout 3600s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Root redirects to the REST UI for convenience
|
|
|
|
|
location = / {
|
|
|
|
|
return 302 /FROST-Server/;
|
|
|
|
|
}
|
|
|
|
|
}
|