nixos: services: migrate to 'websocketsLocations'
This commit is contained in:
parent
e9d96138d5
commit
6a1a35a384
5 changed files with 8 additions and 28 deletions
|
|
@ -40,18 +40,10 @@ in
|
|||
my.services.nginx.virtualHosts = {
|
||||
collabora = {
|
||||
inherit (cfg) port;
|
||||
|
||||
extraConfig = {
|
||||
# Too bad for the repetition...
|
||||
locations."~ ^/cool/(.*)/ws$" = {
|
||||
proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
locations."^~ /cool/adminws" = {
|
||||
proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
websocketsLocations = [
|
||||
"~ ^/cool/(.*)/ws$"
|
||||
"^~ /cool/adminws"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue