Lithops
Lithops
SKSignal K
Created by Lithops on 9/13/2024 in #questions
Signalk behind reverse proxy Nginx
Hello, I would like to use SignalK behind a Nginx reverse proxy, I do my tests locally. With http://localhost:3000 in my browser oK, I get the dashboard. However, when I go through Nginx with https://localhost/signalk with in the configuration file : location /signalk { proxy_pass http://localhost:3000; # Redirect to the Node.js application proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } I don't have the dashboard page, I have the json file: { "endpoints": { "v1": { "version": "2.7.2", "signalk-http": "http://localhost/signalk/v1/api/", "signalk-ws": "ws://localhost/signalk/v1/stream", "signalk-tcp": "tcp://localhost:8375" } }, "server": { "id": "signalk-server-node", "version": "2.7.2" } } Do you know the path to the static files so I can direct nginx, like: Configuration to serve static files (HTML, CSS, JS) location /static/ { root /var/www/signalk; # Path to static files try_files $uri $uri/ =404; } Thanks
17 replies