From 93647242416a66b929ef172c05d60cb2b0073749 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 8 Sep 2021 16:54:55 +0200 Subject: uplcg: init --- hosts/chaski/services/uplcg.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 hosts/chaski/services/uplcg.nix (limited to 'hosts/chaski/services/uplcg.nix') diff --git a/hosts/chaski/services/uplcg.nix b/hosts/chaski/services/uplcg.nix new file mode 100644 index 0000000..d2494bd --- /dev/null +++ b/hosts/chaski/services/uplcg.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +let + uplcg-nix = builtins.fetchGit { + url = "https://stuebinm.eu/git/uplcg"; + }; +in +{ + imports = [ + "${uplcg-nix.outPath}/module.nix" + ]; + + services.uplcg = { + enable = true; + port = 9080; + domain = "0.0.0.0"; + }; + + services.nginx.virtualHosts."cards.stuebinm.eu" = { + locations."/" = { + proxyPass = "http://localhost:9080"; + proxyWebsockets = true; + }; + enableACME = true; + forceSSL = true; + }; +} -- cgit v1.2.3