This commit is contained in:
Tim Schubert 2021-01-02 20:14:09 +01:00
parent 354d04c838
commit 92920ebabd
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 9 additions and 6 deletions

View file

@ -13,8 +13,7 @@ in
services.hydra = {
enable = true;
hydraURL = "hydra.dadada.li";
package = pkgs.hydra-unstable;
hydraURL = "https://hydra.dadada.li";
notificationSender = "hydra@localhost";
buildMachinesFiles = [ ];
useSubstitutes = true;

View file

@ -22,12 +22,16 @@ in
enableACME = true;
forceSSL = true;
root = "${pkgs.nginx}/html";
locations."/".extraConfig = ''
proxy_pass http://10.3.3.3:3000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_redirect http://10.3.3.3:3000 https://hydra.dadada.li;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect https://10.3.3.3:3000 https://hydra.dadada.li;
proxy_pass http://10.3.3.3:3000;
'';
};