From bfa2b1e9b1bbeb8633c8854009aa964640608166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 8 Sep 2024 19:14:30 +0200 Subject: [PATCH] makanek: host online scrabble --- systems/makanek/configuration.nix | 1 + systems/makanek/scrabble.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 systems/makanek/scrabble.nix diff --git a/systems/makanek/configuration.nix b/systems/makanek/configuration.nix index 3d5a601..8351037 100644 --- a/systems/makanek/configuration.nix +++ b/systems/makanek/configuration.nix @@ -16,6 +16,7 @@ in { ./names.nix ./nextcloud.nix ./radio-news.nix + ./scrabble.nix # ./onlyoffice.nix ./retiolum-map.nix ./tarot.nix diff --git a/systems/makanek/scrabble.nix b/systems/makanek/scrabble.nix new file mode 100644 index 0000000..5b86047 --- /dev/null +++ b/systems/makanek/scrabble.nix @@ -0,0 +1,20 @@ +let + port = 9090; +in +{ + virtualisation.oci-containers = { + backend = "podman"; + containers.xanado = { + volumes = [ ]; + ports = [ "${toString port}:9093" ]; + environment.TZ = "Europe/Berlin"; + image = "ghcr.io/cdot/xanado:v3.1.6"; + }; + }; + + services.nginx.virtualHosts."scrabble.kmein.de" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:${toString port}"; + }; +}