Skip to content

Commit

Permalink
Updated nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
JPyke3 committed Aug 28, 2024
1 parent be72bbe commit a63de63
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions programs/daemon/nginx.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: let
{config, ...}: let
domain = "pyk.ee";
in {
services.nginx = {
Expand Down Expand Up @@ -101,6 +97,20 @@ in {
proxyPass = "http://127.0.0.1:8000";
};
};
"firefly.${domain}" = {
forceSSL = true;
useACMEHost = "${domain}";
root = "${config.services.firefly-iii.package}";
locations."/" = {
index = "index.php";
};
locations."~ \\.php$" = {
extraConfig = ''
fastcgi_pass unix:/run/phpfpm/firefly-iii.sock;
fastcgi_index index.php;
'';
};
};
};
};
}

0 comments on commit a63de63

Please sign in to comment.