nixos-config/hosts/falkenstein-1/modules/trucksimulatorbot/default.nix
2023-05-19 11:42:43 +02:00

17 lines
366 B
Nix

{ config, ... }:
let
domain = "trucksimulatorbot.rfive.de";
in
{
services.trucksimulatorbot = {
images.enable = true;
};
services.nginx.virtualHosts."images.${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}";
};
};
}