move vidyos to cupsnet
This commit is contained in:
parent
e0e6e14586
commit
1a75d207f0
5 changed files with 11 additions and 28 deletions
|
@ -21,7 +21,6 @@
|
||||||
./real-hardware.nix
|
./real-hardware.nix
|
||||||
./restic-server.nix
|
./restic-server.nix
|
||||||
./tailscale-cert.nix
|
./tailscale-cert.nix
|
||||||
./videos.nix
|
|
||||||
./virtualisation.nix
|
./virtualisation.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
./foundryvtt.nix
|
./foundryvtt.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
./videos.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "cupsnet";
|
networking.hostName = "cupsnet";
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,23 @@
|
||||||
{inputs, ...}: let
|
{
|
||||||
|
inputs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
domain = "vidyos.peninsula.industries";
|
domain = "vidyos.peninsula.industries";
|
||||||
port = 3876;
|
port = 3876;
|
||||||
in {
|
in {
|
||||||
services.postgresql.port = 5444;
|
imports = [../nginx.nix];
|
||||||
services.invidious = {
|
services.invidious = {
|
||||||
package =
|
package =
|
||||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".invidious;
|
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".invidious;
|
||||||
enable = false;
|
enable = true;
|
||||||
inherit domain;
|
inherit domain;
|
||||||
inherit port;
|
inherit port;
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
database.port = 5444;
|
nginx.enable = true;
|
||||||
nginx.enable = false;
|
|
||||||
settings = {
|
settings = {
|
||||||
external_port = 443;
|
|
||||||
https_only = true;
|
https_only = true;
|
||||||
disable_proxy = false;
|
disable_proxy = true;
|
||||||
registration_enabled = false;
|
registration_enabled = false;
|
||||||
hmac_key = "hd5YPAk7XR3W7nEWRrP6";
|
hmac_key = "hd5YPAk7XR3W7nEWRrP6";
|
||||||
};
|
};
|
|
@ -11,7 +11,6 @@
|
||||||
./rss.nix
|
./rss.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./syncthing-relay.nix
|
./syncthing-relay.nix
|
||||||
./videos.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.extraConfig = ''
|
systemd.extraConfig = ''
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue