archy/docker/electrs-ui/nginx.conf

22 lines
517 B
Nginx Configuration File
Raw Normal View History

server {
listen 50002;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /electrs-status {
proxy_pass http://127.0.0.1:5678/electrs-status;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_connect_timeout 10s;
proxy_read_timeout 10s;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}
}