mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add support for websockets
This commit is contained in:
parent
d52d63ea69
commit
5785a3bb84
2 changed files with 8 additions and 3 deletions
|
|
@ -90,7 +90,12 @@ in with lib; {
|
|||
enableACME = true;
|
||||
};
|
||||
proxy = port:
|
||||
base { "/".proxyPass = "http://${cfg.ip}:${toString port}/"; };
|
||||
base {
|
||||
"/" = {
|
||||
proxyPass = "http://${cfg.ip}:${toString port}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
in mapAttrs' (name: port:
|
||||
nameValuePair ("${name}.${cfg.domain}")
|
||||
# (proxy port // { default = true; })) cfg.ports;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue