2023-05-19 11:42:43 +02:00
|
|
|
{ config, ... }:
|
2023-04-16 16:56:24 +02:00
|
|
|
let
|
|
|
|
domain = "trucksimulatorbot.rfive.de";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.trucksimulatorbot = {
|
|
|
|
images.enable = true;
|
|
|
|
};
|
2023-05-26 14:50:29 +02:00
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
"images.${domain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:${toString config.services.trucksimulatorbot.images.listenPort}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"${domain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/invite".return = " 301 https://discord.com/api/oauth2/authorize?client_id=831052837353816066&permissions=262144&scope=bot%20applications.commands";
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:9000";
|
|
|
|
};
|
2023-04-16 16:56:24 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2023-05-26 14:50:29 +02:00
|
|
|
|