Fixup
This commit is contained in:
parent
354d04c838
commit
92920ebabd
2 changed files with 9 additions and 6 deletions
|
@ -13,8 +13,7 @@ in
|
||||||
|
|
||||||
services.hydra = {
|
services.hydra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hydraURL = "hydra.dadada.li";
|
hydraURL = "https://hydra.dadada.li";
|
||||||
package = pkgs.hydra-unstable;
|
|
||||||
notificationSender = "hydra@localhost";
|
notificationSender = "hydra@localhost";
|
||||||
buildMachinesFiles = [ ];
|
buildMachinesFiles = [ ];
|
||||||
useSubstitutes = true;
|
useSubstitutes = true;
|
||||||
|
|
|
@ -22,12 +22,16 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
|
root = "${pkgs.nginx}/html";
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
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_redirect http://10.3.3.3:3000 https://hydra.dadada.li;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_redirect https://10.3.3.3:3000 https://hydra.dadada.li;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_pass http://10.3.3.3:3000;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue