Fixup
This commit is contained in:
parent
92920ebabd
commit
1b27c2fb11
1 changed files with 8 additions and 9 deletions
|
@ -12,6 +12,8 @@ in
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
logError = "/dev/null";
|
logError = "/dev/null";
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -24,16 +26,13 @@ in
|
||||||
|
|
||||||
root = "${pkgs.nginx}/html";
|
root = "${pkgs.nginx}/html";
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
locations."/" = {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxyPass = "http://10.3.3.3:3000/";
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
extraConfig = ''
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_redirect default;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
|
||||||
proxy_redirect http://10.3.3.3:3000 https://hydra.dadada.li;
|
|
||||||
proxy_redirect https://10.3.3.3:3000 https://hydra.dadada.li;
|
|
||||||
proxy_pass http://10.3.3.3:3000;
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
dadada.admin = {
|
dadada.admin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue