From 6b1290d8092ab097cefcfceef0a7755ed1197b8c Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 26 Apr 2023 01:45:29 +0200 Subject: bahnhof.name in gleam, because why not? (tbf i will probably eventually rewrite this in a more sensible language; I haven't even found any reason to use any of the OTP features for this 🙈) --- chaski/services/bahnhof-name.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 chaski/services/bahnhof-name.nix (limited to 'chaski/services/bahnhof-name.nix') diff --git a/chaski/services/bahnhof-name.nix b/chaski/services/bahnhof-name.nix new file mode 100644 index 0000000..e0e2988 --- /dev/null +++ b/chaski/services/bahnhof-name.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: + +{ + systemd.services.bahnhof-name = { + enable = true; + wantedBy = [ "multi-user.target" ]; + serviceConfig.Type = "simple"; + path = [ pkgs.bahnhof-name ]; + script = '' + bahnhofname + ''; + }; + + services.nginx.virtualHosts."bahnhof.name" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:2345"; + }; +} -- cgit v1.2.3