aboutsummaryrefslogtreecommitdiff
path: root/workadventure.nix
diff options
context:
space:
mode:
authorstuebinm2021-02-05 22:23:05 +0100
committerstuebinm2021-02-05 22:23:05 +0100
commit60455e908ce725174818bafde0ecd2be7a0060d1 (patch)
treeb3169c7adc95f687a7a75272694397fbba16e92d /workadventure.nix
parent86c56bb9a40425e4567c3648d427ad7e6be01a65 (diff)
nicer settting parameters; configurable stun server
Diffstat (limited to 'workadventure.nix')
-rw-r--r--workadventure.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/workadventure.nix b/workadventure.nix
index 02f9803..1050023 100644
--- a/workadventure.nix
+++ b/workadventure.nix
@@ -70,12 +70,12 @@ let
frontPackage = mapAttrs (instanceName: instanceConfig:
instanceConfig.frontend.package.override {
- environment = {
- API_URL = instanceConfig.frontend.urls.api;
- UPLOADER_URL = instanceConfig.frontend.urls.uploader;
- ADMIN_URL = instanceConfig.frontend.urls.admin;
- MAPS_URL = instanceConfig.frontend.urls.maps;
- } // (if instanceConfig.frontend.defaultMap == null then {} else { DEFAULT_MAP_URL = instanceConfig.frontend.defaultMap; });
+ settings = {
+ apiUrl = instanceConfig.frontend.urls.api;
+ uploaderUrl = instanceConfig.frontend.urls.uploader;
+ adminUrl = instanceConfig.frontend.urls.admin;
+ mapsUrl = instanceConfig.frontend.urls.maps;
+ } // instanceConfig.frontend.settings;
}
) cfg.instances;