mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 11:14:26 +00:00
Keep the tools inside the UKMesh website and open CoreScope in Live mode. Resolve packet paths when a reader selects a packet. Add reversible DEV UI releases and an opt-in, isolated MQTT archive replay. A new checkout uses its configured MQTT intake.
31 lines
963 B
Nginx Configuration File
31 lines
963 B
Nginx Configuration File
server {
|
|
listen 8080;
|
|
root /usr/share/nginx/html;
|
|
resolver 127.0.0.11 valid=10s ipv6=off;
|
|
location /api/ {
|
|
set $api http://beacon:8080;
|
|
proxy_pass $api;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
}
|
|
location /ws {
|
|
set $api http://beacon:8080;
|
|
proxy_pass $api;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
# Beacon compares the browser's Origin with Host, including the LAN port.
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_read_timeout 3600s;
|
|
}
|
|
location /assets/ {
|
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
location / {
|
|
add_header Cache-Control "no-cache";
|
|
try_files $uri $uri/index.html /index.html;
|
|
}
|
|
}
|