move vidyos to cupsnet

This commit is contained in:
Cyryl Płotnicki 2024-01-16 22:41:32 +00:00
parent e0e6e14586
commit 1a75d207f0
5 changed files with 11 additions and 28 deletions

View file

@ -21,7 +21,6 @@
./real-hardware.nix
./restic-server.nix
./tailscale-cert.nix
./videos.nix
./virtualisation.nix
./syncthing.nix
];

View file

@ -15,6 +15,7 @@
./foundryvtt.nix
./gitea.nix
./ssh.nix
./videos.nix
];
networking.hostName = "cupsnet";

View file

@ -1,21 +1,23 @@
{inputs, ...}: let
{
inputs,
system,
...
}: let
domain = "vidyos.peninsula.industries";
port = 3876;
in {
services.postgresql.port = 5444;
imports = [../nginx.nix];
services.invidious = {
package =
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".invidious;
enable = false;
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".invidious;
enable = true;
inherit domain;
inherit port;
database.createLocally = true;
database.port = 5444;
nginx.enable = false;
nginx.enable = true;
settings = {
external_port = 443;
https_only = true;
disable_proxy = false;
disable_proxy = true;
registration_enabled = false;
hmac_key = "hd5YPAk7XR3W7nEWRrP6";
};

View file

@ -11,7 +11,6 @@
./rss.nix
./ssh.nix
./syncthing-relay.nix
./videos.nix
];
systemd.extraConfig = ''

View file

@ -1,18 +0,0 @@
{...}: let
domain = "vidyos.peninsula.industries";
port = 3876;
in {
imports = [../nginx.nix];
services.nginx = {
virtualHosts = {
"${domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://bolty.raptor-carp.ts.net:" + toString port;
proxyWebsockets = true;
};
};
};
};
}