fix(reverse-proxy): forward WebSocket upgrades #202
@@ -104,6 +104,7 @@
|
||||
domain = "games.alexion.dev";
|
||||
protocol = "https";
|
||||
port = 80;
|
||||
clientMaxBodySize = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -71,7 +71,10 @@ let
|
||||
extraConfig = lib.optionalString (route.clientMaxBodySize != null) ''
|
||||
client_max_body_size ${route.clientMaxBodySize};
|
||||
'';
|
||||
locations."/".proxyPass = mkBackend address port;
|
||||
locations."/" = {
|
||||
proxyPass = mkBackend address port;
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -37,10 +37,17 @@ in
|
||||
database.createLocally = true;
|
||||
redis.createLocally = true;
|
||||
watcher.enable = true;
|
||||
extraEnvironment.ROM_CONVERTO_ENABLED = "false";
|
||||
extraEnvironment = {
|
||||
HASHEOUS_API_ENABLED = "true";
|
||||
PLAYMATCH_API_ENABLED = "true";
|
||||
ROM_CONVERTO_ENABLED = "false";
|
||||
};
|
||||
inherit (cfg) environmentFile;
|
||||
};
|
||||
|
||||
systemd.services.romm-worker.serviceConfig.ExecStart =
|
||||
lib.mkForce "${lib.getExe' config.services.romm.package "romm-worker"} scans";
|
||||
|
||||
systemd.tmpfiles.settings."10-romm"."${config.services.romm.dataDir}/config/config.yml"."L+".argument =
|
||||
toString (
|
||||
(pkgs.formats.yaml { }).generate "romm-config.yml" {
|
||||
|
||||
Reference in New Issue
Block a user