nixos-config/hosts/falkenstein-1/modules/trucksimulatorbot/default.nix

17 lines
372 B
Nix
Raw Normal View History

2023-04-16 16:56:24 +02:00
{ config, pkgs, ... }:
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}";
};
};
}