mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
17 lines
372 B
Nix
17 lines
372 B
Nix
{ 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}";
|
|
};
|
|
};
|
|
}
|