From e8b22eac84cd09af01c888421122656eb2384d27 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 12 Feb 2022 20:52:57 +0100 Subject: chaski: add walint test server --- chaski/configuration.nix | 1 + chaski/services/walint.nix | 22 ++++++++++++++++++++++ flake.lock | 20 +++++++++++++++++++- flake.nix | 2 ++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 chaski/services/walint.nix diff --git a/chaski/configuration.nix b/chaski/configuration.nix index fa51fdf..ee36e5a 100644 --- a/chaski/configuration.nix +++ b/chaski/configuration.nix @@ -13,6 +13,7 @@ ./services/woitb.nix ./services/geolocation.nix ./services/gtfs.nix + ./services/walint.nix ]; networking.firewall.allowedTCPPorts = [ 80 443 ]; diff --git a/chaski/services/walint.nix b/chaski/services/walint.nix new file mode 100644 index 0000000..0b17e22 --- /dev/null +++ b/chaski/services/walint.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, inputs, ... }: + +{ + systemd.services.walint = { + enable = true; + description = "test instance for walint & divoc"; + wantedBy = [ "multi-user.target" ]; + serviceConfig.Type = "simple"; + path = [ pkgs.git ]; + script = '' + cd ${(import inputs.walint).walint-server} + ./bin/walint-server + ''; + }; + + services.nginx.virtualHosts."walint.stuebinm.eu" = { + locations."/".proxyPass = "http://localhost:8080"; + enableACME = true; + forceSSL = true; + }; + +} diff --git a/flake.lock b/flake.lock index 9d02ae7..dd7a01e 100644 --- a/flake.lock +++ b/flake.lock @@ -176,7 +176,8 @@ "playground": "playground", "sfz": "sfz", "tracktrain": "tracktrain", - "uplcg": "uplcg" + "uplcg": "uplcg", + "walint": "walint" } }, "sfz": { @@ -243,6 +244,23 @@ "repo": "flake-utils", "type": "github" } + }, + "walint": { + "flake": false, + "locked": { + "lastModified": 1644697853, + "narHash": "sha256-jyE6uWQ4Zm/eTfdE2Au+3cAu9Rf5oWomQLgsjJ7PCtQ=", + "ref": "playground", + "rev": "f228c99fd04d539b1aa0c84504b1d6e3f87aa2fe", + "revCount": 234, + "type": "git", + "url": "https://stuebinm.eu/git/walint" + }, + "original": { + "ref": "playground", + "type": "git", + "url": "https://stuebinm.eu/git/walint" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index cf6d382..a97d423 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,8 @@ feeds.url = "path:/home/stuebinm/nonpublic.nix"; feeds.flake = false; + walint.url = "git+https://stuebinm.eu/git/walint?ref=playground"; + walint.flake = false; }; outputs = { self, nixpkgs, deploy-rs, ... }@inputs: -- cgit v1.2.3