summaryrefslogtreecommitdiff
path: root/abbenay
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
+ # };
+
+ };
+
+ };
+ };
+}