diff --git a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix index ec3dc12..fbcc958 100644 --- a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix @@ -1,5 +1,4 @@ -{config,lib,pkgs, ... }: -{ +{ config, lib, pkgs, ... }: { services.nginx.enable = true; services.nginx.virtualHosts.codimd = { @@ -16,7 +15,7 @@ services.codimd = { enable = true; configuration = { - allowFreeURL = true; + allowFreeURL = true; db = { dialect = "sqlite"; storage = "/var/lib/codimd/db.codimd.sqlite"; @@ -26,6 +25,5 @@ }; }; - } diff --git a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix index 5d344d9..108b41a 100644 --- a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix @@ -1,9 +1,10 @@ { config, pkgs, lib, ... }: { imports = [ # - ./hardware-configuration.nix ./codimd.nix + ./hardware-configuration.nix ./jitsi.nix + ./netdata.nix ./ssh.nix ./workadventure.nix ]; diff --git a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/netdata.nix b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/netdata.nix new file mode 100644 index 0000000..7bfdfc6 --- /dev/null +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/netdata.nix @@ -0,0 +1,26 @@ +{ + services.netdata = { + enable = true; + config = { + #"exporting:global" = { "enabled" = "yes"; }; + global = { + "memory mode" = "dbengine"; + "dbengine disk space" = 1024 * 10; # in MB + "debug log" = "none"; + "access log" = "none"; + "error log" = "syslog"; + }; + }; + }; + + services.nginx.enable = true; + services.nginx.virtualHosts."netdata.party.ingolf-wagner.de" = { + enableACME = true; + forceSSL = true; + basicAuth.admin = "NYsXfBKRwkkS60WIeZONtFTv3nz4tPy52uqLkzJzuc"; + locations."/" = { + proxyPass = "http://localhost:19999"; + proxyWebsockets = true; + }; + }; +} diff --git a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/workadventure.nix b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/workadventure.nix index dc6d640..38c2c40 100644 --- a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/workadventure.nix +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/workadventure.nix @@ -15,7 +15,8 @@ let domain = "party.ingolf-wagner.de"; # domain will redirect to this map. (not play.${domain}) - defaultMap = "git.ingolf-wagner.de/palo/world-home/raw/master/main.json"; + defaultMap = "mrvandalo.github.io/workadventure-worlds/main.json"; + apiURL = "api.${domain}"; apiPort = 9002; @@ -68,7 +69,7 @@ in { enableACME = true; forceSSL = true; locations."/" = { - return = "301 $scheme://play.${domain}/_/global/${defaultMap}"; + return = "302 $scheme://play.${domain}/_/global/${defaultMap}"; }; };