mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
22 lines
435 B
Nix
22 lines
435 B
Nix
|
|
{ config, ... }:
|
||
|
|
{
|
||
|
|
services.invidious = {
|
||
|
|
enable = true;
|
||
|
|
port = 8001;
|
||
|
|
};
|
||
|
|
|
||
|
|
services.nginx = {
|
||
|
|
enable = true;
|
||
|
|
recommendedProxySettings = true;
|
||
|
|
recommendedTlsSettings = true;
|
||
|
|
clientMaxBodySize = "40M";
|
||
|
|
virtualHosts = {
|
||
|
|
"video.liv.town" = {
|
||
|
|
forceSSL = true;
|
||
|
|
enableACME = true;
|
||
|
|
proxyPass = "http://127.0.0.1:${toString config.services.invidious.port}";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|