Add hydraProxy module

[?]
Oct 4, 2019, 7:31 PM
QJB3G6E7HPF7NGMWODVLPUHC3J2WLRL3CH2RG6TFG3MFXTCB7I4QC

Dependencies

  • [2] 6LB22PZN Add a NixOS container to demo Hydra
  • [3] 2TKJATAS epoch -> edition
  • [4] P3M6UFMP Merge remote-tracking branch 'origin/master' into flake
  • [*] T4LLYESZ * Nix expression for building Hydra.

Change contents

  • replacement in flake.nix at line 6
    [2.218][2.218:266]()
    inputs.nixpkgs.uri = "nixpkgs/release-19.09";
    [2.218]
    [3.76]
    inputs.nixpkgs.uri = "nixpkgs/release-19.03";
  • edit in flake.nix at line 298
    [2.970]
    [2.970]
    nix.extraOptions = ''
    allowed-uris = https://github.com/
    '';
    };
    nixosModules.hydraProxy = {
    services.httpd = {
    enable = true;
    adminAddr = "hydra-admin@example.org";
    extraConfig = ''
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass /apache-errors !
    ErrorDocument 503 /apache-errors/503.html
    ProxyPass / http://127.0.0.1:3000/ retry=5 disablereuse=on
    ProxyPassReverse / http://127.0.0.1:3000/
    '';
    };
  • replacement in flake.nix at line 327
    [2.1095][2.1095:1152]()
    [ { imports = [ self.nixosModules.hydraTest ];
    [2.1095]
    [2.1152]
    [ { imports = [ self.nixosModules.hydraTest self.nixosModules.hydraProxy ];
  • edit in flake.nix at line 335
    [2.1395][2.1395:1501]()
    nix.extraOptions = ''
    allowed-uris = https://github.com/
    '';
  • edit in flake.nix at line 336
    [2.1557][2.1557:2225]()
    services.httpd = {
    enable = true;
    adminAddr = "hydra-admin@example.org";
    extraConfig = ''
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass /apache-errors !
    ErrorDocument 503 /apache-errors/503.html
    ProxyPass / http://127.0.0.1:3000/ retry=5 disablereuse=on
    ProxyPassReverse / http://127.0.0.1:3000/
    '';
    };