fix up nixarr links and add homarr for nav
This commit is contained in:
parent
6c0c5db16a
commit
c51987536a
5 changed files with 54 additions and 88 deletions
|
@ -10,6 +10,7 @@ in
|
||||||
# common.nixosModules.containers.librechat
|
# common.nixosModules.containers.librechat
|
||||||
common.nixosModules.containers.forgejo
|
common.nixosModules.containers.forgejo
|
||||||
./opengist.nix
|
./opengist.nix
|
||||||
|
./homarr.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -54,8 +55,8 @@ in
|
||||||
|
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
security.acme.defaults.email = "admin@joshuabell.xyz";
|
security.acme.defaults.email = "admin@joshuabell.xyz";
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
|
@ -69,19 +70,13 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# forgejo http traffic
|
||||||
"git.joshuabell.xyz" = {
|
"git.joshuabell.xyz" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://10.0.0.2:3000";
|
proxyPass = "http://10.0.0.2:3000";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# "git.joshuabell.xyz" = {
|
|
||||||
# # GIT passthrough
|
|
||||||
# locations."/" = {
|
|
||||||
# proxyPass = "http://10.0.0.2:3000";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
"_" = {
|
"_" = {
|
||||||
default = true;
|
default = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
@ -91,6 +86,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# STREAMS
|
# STREAMS
|
||||||
|
# Forgejo ssh
|
||||||
streamConfig = ''
|
streamConfig = ''
|
||||||
server {
|
server {
|
||||||
listen 3032;
|
listen 3032;
|
||||||
|
|
47
hosts/h001/containers/homarr.nix
Normal file
47
hosts/h001/containers/homarr.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
name = "homarr";
|
||||||
|
hostDataDir = "/var/lib/${name}";
|
||||||
|
|
||||||
|
v_port = 7575;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
"${name}" = {
|
||||||
|
image = "ghcr.io/homarr-labs/homarr:latest";
|
||||||
|
ports = [
|
||||||
|
"127.0.0.1:${toString v_port}:${toString v_port}"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"${hostDataDir}:/appdata"
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
];
|
||||||
|
environment = {
|
||||||
|
SECRET_ENCRYPTION_KEY = "0b7e80116a742d16a8f07452a2d9b206b1997d32a6dd2c29cfe4df676e281295";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
system.activationScripts."${name}_directories" = ''
|
||||||
|
mkdir -p ${hostDataDir}
|
||||||
|
chown -R root:root ${hostDataDir}
|
||||||
|
chmod -R 777 ${hostDataDir}
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"100.64.0.13" = {
|
||||||
|
locations."/" = {
|
||||||
|
return = "301 http://h001.net.joshuabell.xyz";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"h001.net.joshuabell.xyz" = {
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://127.0.0.1:${builtins.toString v_port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -9,7 +9,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
opengist = {
|
"${name}" = {
|
||||||
image = "ghcr.io/thomiceli/opengist:1";
|
image = "ghcr.io/thomiceli/opengist:1";
|
||||||
ports = [
|
ports = [
|
||||||
"127.0.0.1:${toString v_port}:${toString v_port}"
|
"127.0.0.1:${toString v_port}:${toString v_port}"
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
67
|
67
|
||||||
68
|
68
|
||||||
5543
|
5543
|
||||||
|
3000
|
||||||
];
|
];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
53
|
53
|
||||||
|
@ -24,29 +25,5 @@
|
||||||
8853
|
8853
|
||||||
5443
|
5443
|
||||||
];
|
];
|
||||||
|
|
||||||
# networking = {
|
|
||||||
# interfaces = {
|
|
||||||
# enp0s31f6 = {
|
|
||||||
# useDHCP = true;
|
|
||||||
# ipv4.addresses = [
|
|
||||||
# {
|
|
||||||
# address = "10.12.14.2";
|
|
||||||
# prefixLength = 24;
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts = {
|
|
||||||
"h001.net.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:3000";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,60 +45,6 @@
|
||||||
proxyPass = "http://localhost:5055";
|
proxyPass = "http://localhost:5055";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"jellyfin.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:8096";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"media.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:5055";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"sabnzbd.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:6336";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"prowlarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:9696";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"radarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:7878";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"sonarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:8989";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"lidarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:8686";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"readarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:8787";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"bazarr.h001.n.joshuabell.xyz" = {
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://localhost:6767";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue