Skip to content

Commit

Permalink
Mealie: Part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukant Hajra committed Nov 19, 2024
1 parent b5b8d04 commit 1f767f4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion machines/target/cake/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, build, ... }:
{ config, pkgs, build, ... }:

let

Expand Down Expand Up @@ -85,6 +85,7 @@ in {
location.longitude = -97.7431;

networking.domain = "home.arpa";
networking.firewall.allowedTCPPorts = [ 443 ];
networking.hostId = "2d58ff06";
networking.hostName = hostname;
#networking.interfaces.eno1.useDHCP = false;
Expand Down Expand Up @@ -127,6 +128,35 @@ in {
services.libinput.mouse.scrollMethod = "button";
services.locate.enable = true;
services.mealie.enable = true;

services.nginx = {
enable = true;
virtualHosts = {
"meali.home.arpa" = {
listen = [
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
forceSSL = true;
inherit (config.services.mealie)
sslCertificate
sslCertificateKey;
locations."/" = {
proxyPass = "http://127.0.0.1:9000";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
'';
};
};
};
};

services.ntp.enable = true;
services.openssh.enable = true;
services.openssh.extraConfig = ''AllowUsers tnks mzhajra'';
Expand Down

0 comments on commit 1f767f4

Please sign in to comment.