diff options
Diffstat (limited to 'chaski')
-rw-r--r-- | chaski/configuration.nix | 1 | ||||
-rw-r--r-- | chaski/services/bahnhof-name.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/chaski/configuration.nix b/chaski/configuration.nix index af82b98..cbc2e91 100644 --- a/chaski/configuration.nix +++ b/chaski/configuration.nix @@ -11,6 +11,7 @@ ./services/uplcg.nix ./services/tracktrain.nix ./services/chat.nix + ./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"; + }; +} |