summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-04-11 22:20:12 +0200
committerstuebinm2022-04-11 22:20:12 +0200
commitb6397c58b8ae7bed2bb170830a49df14918690a3 (patch)
treea98d678745b0b5ec5a4e6b97875c8a0b08c45bab
parent3c4b9b1d48181a487279b374bb5853b2022e430e (diff)
blah exneuland divoc blah
-rw-r--r--abbenay/exneuland.nix29
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;
+ # };
+
+ };
+
+ };
+ };
+}