Adding sevice
This commit is contained in:
+25
-7
@@ -3,8 +3,13 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
inputs.configarr.nixosModules.default
|
||||||
|
];
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_forward" = 1;
|
"net.ipv4.ip_forward" = 1;
|
||||||
"net.bridge.bridge-nf-call-iptables" = 1;
|
"net.bridge.bridge-nf-call-iptables" = 1;
|
||||||
@@ -26,25 +31,34 @@
|
|||||||
environmentFile = config.sops.templates."caddy.env".path;
|
environmentFile = config.sops.templates."caddy.env".path;
|
||||||
virtualHosts."centraldogma.site:".extraConfig = ''
|
virtualHosts."centraldogma.site:".extraConfig = ''
|
||||||
|
|
||||||
root /srv/root/
|
root /mnt/games/
|
||||||
file_server
|
file_server browse
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
redir /jellyfin /jellyfin/
|
|
||||||
reverse_proxy /jellyfin/* 127.0.0.1:8096
|
|
||||||
|
|
||||||
|
|
||||||
redir /radarr /radarr/
|
redir /radarr /radarr/
|
||||||
reverse_proxy /radarr/* 127.0.0.1:7878
|
reverse_proxy /radarr/* 127.0.0.1:7878
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
# virtualHosts."dogma.lan:".extraConfig = ''
|
||||||
|
# tls internal
|
||||||
|
# root * /srv/root/
|
||||||
|
# file_server browse
|
||||||
|
# encode zstd gzip
|
||||||
|
# '';
|
||||||
|
#
|
||||||
virtualHosts."jellyfin.centraldogma.site:".extraConfig = ''
|
virtualHosts."jellyfin.centraldogma.site:".extraConfig = ''
|
||||||
reverse_proxy /* 127.0.0.1:8096
|
reverse_proxy /* 127.0.0.1:8096
|
||||||
'';
|
'';
|
||||||
virtualHosts."jellyfin2.centraldogma.site:".extraConfig = ''
|
|
||||||
|
virtualHosts."sonarr.centraldogma.site:".extraConfig = ''
|
||||||
redir /sonarr /sonarr/
|
redir /sonarr /sonarr/
|
||||||
reverse_proxy /sonarr/* 127.0.0.1:8989
|
reverse_proxy /sonarr/* 127.0.0.1:8989
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
virtualHosts."radarr.centraldogma.site:".extraConfig = ''
|
||||||
|
redir /radarr /radarr/
|
||||||
|
reverse_proxy /radarr/* 127.0.0.1:7878
|
||||||
|
'';
|
||||||
virtualHosts."git.centraldogma.site:".extraConfig = ''
|
virtualHosts."git.centraldogma.site:".extraConfig = ''
|
||||||
reverse_proxy /* 127.0.0.1:3000
|
reverse_proxy /* 127.0.0.1:3000
|
||||||
'';
|
'';
|
||||||
@@ -52,6 +66,10 @@
|
|||||||
|
|
||||||
services.flaresolverr.enable = true;
|
services.flaresolverr.enable = true;
|
||||||
|
|
||||||
|
services.configarr = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.mongodb = {
|
services.mongodb = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.mongodb-ce;
|
package = pkgs.mongodb-ce;
|
||||||
|
|||||||
Reference in New Issue
Block a user