Jump to content

Caddy: Difference between revisions

45 bytes removed ,  6 August 2022
m
no edit summary
imported>Onny
mNo edit summary
imported>Onny
mNo edit summary
Line 32: Line 32:
   enable = true;
   enable = true;
   virtualHosts."example.org".extraConfig = ''
   virtualHosts."example.org".extraConfig = ''
     http://localhost {
     encode gzip
      encode gzip
    file_server
      file_server
    root * ${
      root * ${
      pkgs.runCommand "testdir" {} ''
        pkgs.runCommand "testdir" {} ''
        mkdir "$out"
          mkdir "$out"
        echo hello world > "$out/example.html"
          echo hello world > "$out/example.html"
      ''
        ''
      }
     }
     }
   '';
   '';
Anonymous user