workadventure setup complete

feature/hass
Ingolf Wagner 2021-01-17 16:57:20 +01:00
parent 05fed32fe3
commit 880d5187c9
Signed by: palo
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.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 @@
};
};
}

View File

@ -1,9 +1,10 @@
{ config, pkgs, lib, ... }: {
imports = [
#
./hardware-configuration.nix
./codimd.nix
./hardware-configuration.nix
./jitsi.nix
./netdata.nix
./ssh.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 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}";
};
};