mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
ported trucksimulatorbot images
This commit is contained in:
parent
dd60c40217
commit
b28898690b
4 changed files with 50 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
|||
./modules/networks
|
||||
./modules/nginx
|
||||
./modules/purge
|
||||
./modules/trucksimulatorbot
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
|
16
hosts/falkenstein-1/modules/trucksimulatorbot/default.nix
Normal file
16
hosts/falkenstein-1/modules/trucksimulatorbot/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue