This commit is contained in:
parent
501683c5ab
commit
0fe65b8d33
4 changed files with 30 additions and 0 deletions
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