i can't remember what caused this...
This commit is contained in:
@@ -9,5 +9,5 @@
|
||||
wireguard = import ./wireguard.nix;
|
||||
backup = import ./backup.nix;
|
||||
ulogger-server = import ./ulogger.nix;
|
||||
# microbin = import ./microbin.nix; includide in 23.11
|
||||
# microbin = import ./microbin.nix; # includide in 23.11
|
||||
}
|
||||
|
||||
+15
-21
@@ -26,7 +26,7 @@ let
|
||||
console = pkgs.writeShellScriptBin "wallabag-console" ''
|
||||
export WALLABAG_DATA="${cfg.dataDir}"
|
||||
cd "${cfg.dataDir}"
|
||||
${pkgs.php}/bin/php ${pkgs.wallabag}/bin/console --env=prod $@
|
||||
${pkgs.php}/bin/php ${cfg.package}/bin/console --env=prod $@
|
||||
'';
|
||||
|
||||
in
|
||||
@@ -166,11 +166,11 @@ in
|
||||
forceSSL = false;
|
||||
root = "${cfg.package}/web";
|
||||
|
||||
extraConfig = ''
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
'';
|
||||
# extraConfig = ''
|
||||
# add_header X-Frame-Options SAMEORIGIN;
|
||||
# add_header X-Content-Type-Options nosniff;
|
||||
# add_header X-XSS-Protection "1; mode=block";
|
||||
# '';
|
||||
|
||||
locations."/" = {
|
||||
tryFiles = "$uri /app.php$is_args$args";
|
||||
@@ -179,25 +179,19 @@ in
|
||||
locations."/assets".root = "${cfg.dataDir}/web";
|
||||
|
||||
locations."~ ^/app\\.php(/|$)" = {
|
||||
fastcgiParams = {
|
||||
SCRIPT_FILENAME = "$realpath_root$fastcgi_script_name";
|
||||
DOCUMENT_ROOT = "$realpath_root";
|
||||
};
|
||||
# fastcgiParams = {
|
||||
# SCRIPT_FILENAME = "$realpath_root$fastcgi_script_name";
|
||||
# DOCUMENT_ROOT = "$realpath_root";
|
||||
# };
|
||||
extraConfig = ''
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools."${poolName}".socket};
|
||||
include ${config.services.nginx.package}/conf/fastcgi_params;
|
||||
include ${config.services.nginx.package}/conf/fastcgi.conf;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME ${cfg.package}/web/$fastcgi_script_name;
|
||||
fastcgi_param DOCUMENT_ROOT ${cfg.package}/web;
|
||||
fastcgi_read_timeout 120;
|
||||
internal;
|
||||
'';
|
||||
# extraConfig = ''
|
||||
# fastcgi_pass unix:${config.services.phpfpm.pools."${poolName}".socket};
|
||||
# fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
# include ${pkgs.nginx}/conf/fastcgi_params;
|
||||
# fastcgi_param SCRIPT_FILENAME ${cfg.package}/web/$fastcgi_script_name;
|
||||
# fastcgi_param DOCUMENT_ROOT ${cfg.package}/web;
|
||||
# fastcgi_read_timeout 120;
|
||||
# internal;
|
||||
# '';
|
||||
};
|
||||
|
||||
locations."~ /(?!app)\\.php$" = {
|
||||
|
||||
Reference in New Issue
Block a user