workadventure setup complete
This commit is contained in:
parent
05fed32fe3
commit
880d5187c9
4 changed files with 33 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
|||
{config,lib,pkgs, ... }:
|
||||
{
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts.codimd = {
|
||||
|
@ -26,6 +25,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
imports = [
|
||||
#
|
||||
./hardware-configuration.nix
|
||||
./codimd.nix
|
||||
./hardware-configuration.nix
|
||||
./jitsi.nix
|
||||
./netdata.nix
|
||||
./ssh.nix
|
||||
./workadventure.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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue