1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/services/jellyfin.nix

35 lines
868 B
Nix
Raw Normal View History

2024-11-12 18:03:31 +01:00
{ lib, ... }: {
2024-11-13 16:03:28 +01:00
services.jellyfin.enable = true;
2024-11-12 18:03:31 +01:00
kyouma.nginx.virtualHosts = {
"watch.kyouma.net".redirectTo = "fentanyl.trade";
"fentanyl.trade" = {
serverAliases = lib.singleton "frotti.ng";
locations = {
"= /".return = "302 https://$host/web/";
"/" = {
proxyPass = "http://[::1]:8096";
recommendedProxySettings = true;
extraConfig = ''
proxy_buffering on;
'';
};
"= /web/" = {
proxyPass = "http://[::1]:8096";
recommendedProxySettings = true;
};
"/socket" = {
proxyPass = "http://[::1]:8096";
recommendedProxySettings = true;
proxyWebsockets = true;
};
};
};
};
security.acme.certs."fentanyl.trade".extraDomainNames = [
"frotti.ng"
"watch.kyouma.net"
];
}