summaryrefslogtreecommitdiff
path: root/hosts/chaski
diff options
context:
space:
mode:
authorstuebinm2021-09-08 16:54:55 +0200
committerstuebinm2021-09-08 16:54:55 +0200
commit93647242416a66b929ef172c05d60cb2b0073749 (patch)
tree09247e58aa2a406d3dcd5ec5061b6fc14c164e75 /hosts/chaski
parent430fdd501c2017b125e75b2e55358a51216b45ab (diff)
uplcg: init
Diffstat (limited to '')
-rw-r--r--hosts/chaski/configuration.nix1
-rw-r--r--hosts/chaski/services/uplcg.nix27
2 files changed, 28 insertions, 0 deletions
diff --git a/hosts/chaski/configuration.nix b/hosts/chaski/configuration.nix
index fc9484f..b3feeec 100644
--- a/hosts/chaski/configuration.nix
+++ b/hosts/chaski/configuration.nix
@@ -11,6 +11,7 @@
./services/grafana.nix
# ./services/workadventure.nix
./services/exneuland.nix
+ ./services/uplcg.nix
];
hexchen.deploy = {
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;
+ };
+}