This commit is contained in:
parent
501683c5ab
commit
0fe65b8d33
4 changed files with 30 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
"home"
|
||||
"jellyfin"
|
||||
"luke"
|
||||
"mealie"
|
||||
"nixedo"
|
||||
"paperless"
|
||||
"photos"
|
||||
|
|
|
@ -11,6 +11,7 @@ in
|
|||
|
||||
config.homelab.ports = {
|
||||
homepage-dashboard = 8097;
|
||||
mealie = 9001;
|
||||
pihole = 8082;
|
||||
tubearchivist = 8099;
|
||||
vaultwarden = 8022;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
imports = [
|
||||
./homepage
|
||||
./mastodon.nix
|
||||
./mealie.nix
|
||||
./samba.nix
|
||||
./uptime-kuma.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