Nginx: Difference between revisions

imported>Mic92
fix phpfpm syntax.
imported>Asymmetric
m Sample setups: fix alignment
Line 144: Line 144:
     virtualHosts = let
     virtualHosts = let
       base = locations: {
       base = locations: {
      inherit locations;
        inherit locations;
     
 
      forceSSL = true;
        forceSSL = true;
      enableACME = true;
        enableACME = true;
    };
      };
    proxy = port: base {
      proxy = port: base {
      "/".proxyPass = "http://127.0.0.1:" + toString(port) + "/";
        "/".proxyPass = "http://127.0.0.1:" + toString(port) + "/";
    };
      };
     in {
     in {
       # Define example.com as reverse-proxied service on 127.0.0.1:3000
       # Define example.com as reverse-proxied service on 127.0.0.1:3000