mirror of
https://git.gay/xqtc/nixos-config
synced 2025-05-10 07:07:29 +02:00
Compare commits
2 commits
86a6b5436a
...
1391f289b1
Author | SHA1 | Date | |
---|---|---|---|
1391f289b1 | |||
a122335961 |
3 changed files with 34 additions and 10 deletions
hosts/x86_64-linux/seraphim
33
hosts/x86_64-linux/seraphim/caddy.nix
Normal file
33
hosts/x86_64-linux/seraphim/caddy.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
email = "xqtc@tutanota.com";
|
||||
virtualHosts = {
|
||||
"radarr.seraphim.java-beardie.ts.net" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:7878
|
||||
'';
|
||||
};
|
||||
"sonarr.seraphim.java-beardie.ts.net" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:8989
|
||||
'';
|
||||
};
|
||||
"prowlarr.seraphim.java-beardie.ts.net" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:9696
|
||||
'';
|
||||
};
|
||||
"qbit.seraphim.java-beardie.ts.net" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:8085
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -15,6 +15,7 @@
|
|||
../../../common/comin.nix
|
||||
./jellyfin.nix
|
||||
./monitoring.nix
|
||||
./caddy.nix
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
|
|
@ -34,14 +34,4 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
'';
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue