Mealie instance setup

This commit is contained in:
James Eversole 2023-09-09 07:17:48 -05:00
parent 2405b72d1b
commit 254cf0221b
4 changed files with 87 additions and 46 deletions

View File

@ -21,7 +21,7 @@
}; };
}; };
# gitlab-runner = a service definition in this file. # gitlab-runner = a service definition at the bottom of this file.
jellyfin = { jellyfin = {
image = "linuxserver/jellyfin"; image = "linuxserver/jellyfin";
@ -42,13 +42,30 @@
}; };
}; };
mealie = {
image = "hkotel/mealie:omni-nightly";
ports = [ "52230:3000" ];
volumes = [
"/home/sezycei/srv/containerdata/mealie/data:/app/data"
"/home/sezycei/srv/containerdata/mealie/hosts:/etc/hosts"
];
environment = {
ALLOW_SIGNUP = "false";
PGID = "1000";
PUID = "1000";
TZ = "America/Chicago";
BASE_URL = "https://food.eversole.co";
};
extraOptions = [ "--network=slirp4netns:enable_ipv6=false" ];
};
murmur = { murmur = {
image = "goofball222/murmur"; image = "goofball222/murmur";
ports = [ "64738:64738" "64738:64738/udp" ]; ports = [ "64738:64738" "64738:64738/udp" ];
volumes = [ volumes = [
"/home/sezycei/srv/containerdata/murmur/murmur/config:/opt/murmur/config" "/home/sezycei/srv/containerdata/murmur/murmur/config:/opt/murmur/config"
"/home/sezycei/srv/containerdata/murmur/murmur/data:/opt/murmur/data" "/home/sezycei/srv/containerdata/murmur/murmur/data:/opt/murmur/data"
"/home/sezycei/srv/containerdata/murmur/murmur/log:/opt/murmur/log" "/home/sezycei/srv/containerdata/murmur/murmur/log:/opt/murmur/log"
]; ];
environment = { }; environment = { };
}; };

View File

@ -54,7 +54,10 @@
target = "http://127.0.0.1:3001"; target = "http://127.0.0.1:3001";
}; };
"eversole.co" = static { dir = "/var/www/jame.su"; }; "eversole.co" = static { dir = "/var/www/jame.su"; };
"git.eversole.co" = base { "food.eversole.co" = proxied {
target = "http://127.0.0.1:52230";
};
"git.eversole.co" = base {
"/".proxyPass = "http://127.0.0.1:26616"; "/".proxyPass = "http://127.0.0.1:26616";
"/purr".return = "301 https://git.eversole.co/James/purr"; "/purr".return = "301 https://git.eversole.co/James/purr";
}; };

View File

@ -4,54 +4,72 @@
# https://coredns.io/manual/configuration/ # https://coredns.io/manual/configuration/
# https://github.com/coredns/coredns.io/blob/master/content/manual/configuration.md # https://github.com/coredns/coredns.io/blob/master/content/manual/configuration.md
coredns.config = '' coredns.config = ''
matri.cx { matri.cx {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130" answer "{{ .Name }} 0 IN A 192.168.0.130"
} }
} }
mail.matri.cx { mail.matri.cx {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 149.28.112.101" answer "{{ .Name }} 0 IN A 149.28.112.101"
} }
} }
mc.caitlynncox.com { mc.caitlynncox.com {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.131" answer "{{ .Name }} 0 IN A 192.168.0.131"
} }
} }
*.matri.cx { *.matri.cx {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130" answer "{{ .Name }} 0 IN A 192.168.0.130"
} }
} }
eversole.co { eversole.co {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130" answer "{{ .Name }} 0 IN A 192.168.0.130"
} }
} }
box.eversole.co { box.eversole.co {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 149.28.112.101" answer "{{ .Name }} 0 IN A 149.28.112.101"
} }
} }
*.eversole.co { *.eversole.co {
template IN A { template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130" answer "{{ .Name }} 0 IN A 192.168.0.130"
} }
} }
. { . {
forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40 forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40
cache cache
} }
''; # Stop unblocking these sites. Seriously.
lobste.rs {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
ycombinator.com {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
*.ycombinator.com {
template IN A {
answer "{{ .Name }} 0 IN A 127.0.0.1"
}
}
'';
}; };
} }

View File

@ -17,6 +17,9 @@
packages = with pkgs; [ ]; packages = with pkgs; [ ];
}; };
torrent.isNormalUser = true; torrent = {
isNormalUser = true;
homeMode = "770";
};
}; };
} }