workadventure setup complete

This commit is contained in:
Ingolf Wagner 2021-01-17 16:57:20 +01:00
parent 05fed32fe3
commit 880d5187c9
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 33 additions and 7 deletions

View file

@ -1,5 +1,4 @@
{config,lib,pkgs, ... }: { config, lib, pkgs, ... }: {
{
services.nginx.enable = true; services.nginx.enable = true;
services.nginx.virtualHosts.codimd = { services.nginx.virtualHosts.codimd = {
@ -16,7 +15,7 @@
services.codimd = { services.codimd = {
enable = true; enable = true;
configuration = { configuration = {
allowFreeURL = true; allowFreeURL = true;
db = { db = {
dialect = "sqlite"; dialect = "sqlite";
storage = "/var/lib/codimd/db.codimd.sqlite"; storage = "/var/lib/codimd/db.codimd.sqlite";
@ -26,6 +25,5 @@
}; };
}; };
} }

View file

@ -1,9 +1,10 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
imports = [ imports = [
# #
./hardware-configuration.nix
./codimd.nix ./codimd.nix
./hardware-configuration.nix
./jitsi.nix ./jitsi.nix
./netdata.nix
./ssh.nix ./ssh.nix
./workadventure.nix ./workadventure.nix
]; ];

View file

@ -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;
};
};
}

View file

@ -15,7 +15,8 @@ let
domain = "party.ingolf-wagner.de"; domain = "party.ingolf-wagner.de";
# domain will redirect to this map. (not play.${domain}) # 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}"; apiURL = "api.${domain}";
apiPort = 9002; apiPort = 9002;
@ -68,7 +69,7 @@ in {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
return = "301 $scheme://play.${domain}/_/global/${defaultMap}"; return = "302 $scheme://play.${domain}/_/global/${defaultMap}";
}; };
}; };