Lithops
Lithops
SKSignal K
Created by Lithops on 9/13/2024 in #questions
Signalk behind reverse proxy Nginx
Thanks for your feedback, I still don't have any results, I think my problem comes from REACT, which I don't know well. Here is my entire signalk.conf file server { listen 443 ssl; server_name localhost; # Or use your domain name ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt; ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key; # Enable secure TLS protocols ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES12 8-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384'; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; location /signalk { proxy_pass http://localhost:3000; # Redirects to 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; #Log files for this application access_log /var/log/nginx/signalk_access.log; error_log /var/log/nginx/signalk_error.log; } #Default configuration to avoid using local directories location / { return 404; } } server { listen 80; server_name localhost; #Redirect HTTP requests to HTTPS return 301 https://$host$request_uri; } I'm still looking
17 replies
SKSignal K
Created by Lithops on 9/13/2024 in #questions
Signalk behind reverse proxy Nginx
And what value should I put to proxy_pass?
17 replies