Skip to content

Commit

Permalink
enabled fastcgi
Browse files Browse the repository at this point in the history
curl localhost/public/index.php is working
  • Loading branch information
jasonodoom committed Sep 8, 2023
1 parent 713e6c8 commit 1030b3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/flarum.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ in {
enable = true;
virtualHosts."${cfg.domain}" = {
root = "${cfg.stateDir}";
# locations."~ .php$".extraConfig = ''
# fastcgi_pass unix:${config.services.phpfpm.pools.flarum.socket};
# fastcgi_index site.php;
# '';
locations."~ .php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.flarum.socket};
fastcgi_index site.php;
'';
extraConfig = ''
include ${cfg.package}/build/.nginx.conf;
autoindex on;
Expand Down

0 comments on commit 1030b3d

Please sign in to comment.