This commit is contained in:
parent
501683c5ab
commit
0fe65b8d33
4 changed files with 30 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
"home"
|
"home"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"luke"
|
"luke"
|
||||||
|
"mealie"
|
||||||
"nixedo"
|
"nixedo"
|
||||||
"paperless"
|
"paperless"
|
||||||
"photos"
|
"photos"
|
||||||
|
|
|
@ -11,6 +11,7 @@ in
|
||||||
|
|
||||||
config.homelab.ports = {
|
config.homelab.ports = {
|
||||||
homepage-dashboard = 8097;
|
homepage-dashboard = 8097;
|
||||||
|
mealie = 9001;
|
||||||
pihole = 8082;
|
pihole = 8082;
|
||||||
tubearchivist = 8099;
|
tubearchivist = 8099;
|
||||||
vaultwarden = 8022;
|
vaultwarden = 8022;
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./homepage
|
./homepage
|
||||||
./mastodon.nix
|
./mastodon.nix
|
||||||
|
./mealie.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
./uptime-kuma.nix
|
./uptime-kuma.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
|
27
hosts/nixedo/services/mealie.nix
Normal file
27
hosts/nixedo/services/mealie.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
ports = config.homelab.ports;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.mealie = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.stable.mealie;
|
||||||
|
|
||||||
|
database.createLocally = true;
|
||||||
|
|
||||||
|
port = ports.mealie;
|
||||||
|
|
||||||
|
settings.ALLOW_SIGNUP = "false";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."mealie.oliverdavies.uk" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.mealie.port}";
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue