diff options
author | stuebinm | 2022-04-11 22:20:12 +0200 |
---|---|---|
committer | stuebinm | 2022-04-11 22:20:12 +0200 |
commit | b6397c58b8ae7bed2bb170830a49df14918690a3 (patch) | |
tree | a98d678745b0b5ec5a4e6b97875c8a0b08c45bab /abbenay/exneuland.nix | |
parent | 3c4b9b1d48181a487279b374bb5853b2022e430e (diff) |
blah exneuland divoc blah
Diffstat (limited to '')
-rw-r--r-- | abbenay/exneuland.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/abbenay/exneuland.nix b/abbenay/exneuland.nix new file mode 100644 index 0000000..1c07355 --- /dev/null +++ b/abbenay/exneuland.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, ... }: + +{ + services.nginx = { + enable = true; + + virtualHosts.localhost = { + root = "/tmp/workadventure-xce/result/dist"; + locations = { + "/_/" = { + tryFiles = "/index.html =404"; + }; + + "/pusher/" = { + proxyPass = "http://localhost:4000"; + proxyWebsockets = true; + }; + + # "/maps/" = mkIf instanceConfig.nginx.maps.serve { + # alias = if instanceConfig.nginx.maps.path == null + # then instanceConfig.packageset.maps.outPath + "/workadventuremaps" + # else instanceConfig.nginx.maps.path; + # }; + + }; + + }; + }; +} |