Better proxy
This commit is contained in:
parent
58e14f0dad
commit
be8556af54
1 changed files with 9 additions and 1 deletions
|
|
@ -58,7 +58,15 @@ with lib; {
|
||||||
virtualHosts = let ssl = { enableACME = true; forceSSL = true; }; in
|
virtualHosts = let ssl = { enableACME = true; forceSSL = true; }; in
|
||||||
{
|
{
|
||||||
"unimi.bertof.net" = ssl // { locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;"; };
|
"unimi.bertof.net" = ssl // { locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;"; };
|
||||||
"home-assistant.bertof.net" = ssl // { locations."/".proxyPass = "http://loki.local:8123/"; };
|
"home-assistant.bertof.net" = ssl // {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://loki.local:8123/";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_pass_header Authorization;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
openssh = { enable = true; openFirewall = true; };
|
openssh = { enable = true; openFirewall = true; };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue