From 7284ffdec98e06ab91fb99937630198db922d6fe Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 10 Jan 2021 13:28:59 +0100 Subject: [PATCH] workadventure add codimd --- .../plops/configs/nixserver-host/codimd.nix | 31 +++++++++++++++++++ .../configs/nixserver-host/configuration.nix | 3 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix diff --git a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix new file mode 100644 index 0000000..ec3dc12 --- /dev/null +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/codimd.nix @@ -0,0 +1,31 @@ +{config,lib,pkgs, ... }: +{ + + services.nginx.enable = true; + services.nginx.virtualHosts.codimd = { + enableACME = true; + addSSL = true; + serverName = "codimd.ingolf-wagner.de"; + locations."/".extraConfig = '' + client_max_body_size 4G; + proxy_set_header Host $host; + proxy_pass http://localhost:3091; + ''; + }; + + services.codimd = { + enable = true; + configuration = { + allowFreeURL = true; + db = { + dialect = "sqlite"; + storage = "/var/lib/codimd/db.codimd.sqlite"; + useCDN = false; + }; + port = 3091; + }; + }; + + +} + 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 a2a85eb..5d344d9 100644 --- a/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix +++ b/terranix/workadventure-jitsi-setup/plops/configs/nixserver-host/configuration.nix @@ -2,8 +2,9 @@ imports = [ # ./hardware-configuration.nix - ./ssh.nix + ./codimd.nix ./jitsi.nix + ./ssh.nix ./workadventure.nix ];