This commit is contained in:
xqtc 2024-07-24 14:11:31 +02:00
parent 09b1fe8a30
commit e42b089280
4 changed files with 41 additions and 51 deletions

View file

@ -14,6 +14,7 @@ with lib; {
./transmission.nix
./fail2ban.nix
./lanrarari.nix
./hydra.nix
./uptime.nix
./networking.nix
./git.nix
@ -29,44 +30,6 @@ with lib; {
services.caddy = {
enable = true;
email = "xqtc@tutanota.com";
# configFile = pkgs.writeText "Caddyfile" ''
# heroin.trade {
# root * /var/www/website/public/
# handle_errors {
# rewrite * /404.html
# file_server
# }
# file_server
# }
# syncthing.heroin.trade {
# reverse_proxy http://localhost:8384 {
# header_up Host {upstream_hostport}
# }
# }
# demos.heroin.trade {
# root * /var/www/demos/
# file_server browse
# }
# git.heroin.trade {
# reverse_proxy http://localhost:3002
# }
#
# jellyfin.heroin.trade {
# reverse_proxy http://127.0.0.1:8096
# }
#
# calibre.heroin.trade {
# reverse_proxy http://localhost:3000
# }
#
# grafana.heroin.trade {
# reverse_proxy http://127.0.0.1:2342
# }
#
# uptime.heroin.trade {
# reverse_proxy 127.0.0.1:3001
# }
# '';
virtualHosts = {
"heroin.trade" = {
extraConfig = ''
@ -78,6 +41,11 @@ with lib; {
file_server
'';
};
"hydra.heroin.trade" = {
extraConfig = ''
reverse_proxy http://localhost:${builtins.toString config.services.hydra.port}
'';
};
"cheats-rs.heroin.trade" = {
extraConfig = ''
root * /var/www/cheats-rs/public/

View file

@ -0,0 +1,22 @@
{
config,
lib,
...
}: {
services.hydra = {
enable = true;
hydraURL = "https://hydra.heroin.trade";
port = 3003;
useSubstitutes = true;
notificationSender = "hydra@localhost";
};
nix.buildMachines = [
{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
maxJobs = 8;
}
];
}