Skip to content

Appendix#

Example of NGINX configuration setup:

server {
     listen               443 ssl;
     server_name          luna-pass.frontend.vlabs;

     # SSL settings
     #ssl_certificate ....

     # Path to luna-pass jslib
     root /var/lib/luna-pass/current/jslib/examples;

     # Static settings
     location/{
         try_files $uri $uri/ /index.html =404;
         add_header Cache-Control "no-store, no-cache, must-revalidate";
     }

     # Websocket connection with the backend
     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;
     }
}