Nginx: Difference between revisions

imported>Bronson
it's easier to edit configuration.nix than remount the nginx config r/w.
imported>\\\\\\\\\\\
Nginx is handling TLS, so proxyPass should almost always specify http, not https.
Line 172: Line 172:
       forceSSL = true;
       forceSSL = true;
       locations."/" = {
       locations."/" = {
         proxyPass = "https://127.0.0.1:12345";
         proxyPass = "http://127.0.0.1:12345";
         proxyWebsockets = true; # needed if you need to use WebSocket
         proxyWebsockets = true; # needed if you need to use WebSocket
         extraConfig =
         extraConfig =