83f6c77538
Фронт подключается к wss://<host>/api/ws и выводит цену SOL, которую шлюз транслирует из NATS. Автопереподключение, статус соединения, счётчик сообщений. Добавлены Dockerfile/nginx.conf/helm для деплоя.
21 lines
528 B
Nginx Configuration File
21 lines
528 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
gzip on;
|
|
gzip_min_length 512;
|
|
gzip_types text/html application/javascript application/json text/css;
|
|
|
|
# index.html — без кеша: пульт должен подхватывать новые релизы сразу.
|
|
location = /index.html {
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
add_header Cache-Control "no-store";
|
|
}
|
|
}
|