mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds invidious
This commit is contained in:
parent
d6bbb33419
commit
4273a42d9c
1 changed files with 21 additions and 0 deletions
21
modules/services/invidious.nix
Normal file
21
modules/services/invidious.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue