Приложение#
Пример настройки config NGINX:
server {
listen 443 ssl;
server_name luna-pass.frontend.vlabs;
# Настройки SSL
# ssl_certificate ....
# Путь к luna-pass jslib
root /var/lib/luna-pass/current/jslib/examples;
# Настройки статики
location / {
try_files $uri $uri/ /index.html =404;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# Установка websocket соединения с бэком
location /ws {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8321;
}
}