From b6397c58b8ae7bed2bb170830a49df14918690a3 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 11 Apr 2022 22:20:12 +0200 Subject: blah exneuland divoc blah --- abbenay/exneuland.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 abbenay/exneuland.nix 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; + # }; + + }; + + }; + }; +} -- cgit v1.2.3