amandoleene-designyourfuture: wordpress to static website
This commit is contained in:
parent
4572c8c81b
commit
dbaa468f36
@ -61,10 +61,10 @@ in
|
|||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = config.users.groups.webdav.name;
|
group = config.users.groups.webdav.name;
|
||||||
};
|
};
|
||||||
wordpress = {
|
# wordpress = {
|
||||||
isSystemUser = true;
|
# isSystemUser = true;
|
||||||
group = config.services.nginx.group;
|
# group = config.services.nginx.group;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@ -83,19 +83,19 @@ in
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
"wordpress-designyourfuture" = {
|
# "wordpress-designyourfuture" = {
|
||||||
user = config.users.users.wordpress.name;
|
# user = config.users.users.wordpress.name;
|
||||||
group = config.services.nginx.group;
|
# group = config.services.nginx.group;
|
||||||
settings = {
|
# settings = {
|
||||||
"listen.owner" = config.services.nginx.user;
|
# "listen.owner" = config.services.nginx.user;
|
||||||
"pm" = "dynamic";
|
# "pm" = "dynamic";
|
||||||
"pm.max_children" = 32;
|
# "pm.max_children" = 32;
|
||||||
"pm.start_servers" = 2;
|
# "pm.start_servers" = 2;
|
||||||
"pm.min_spare_servers" = 2;
|
# "pm.min_spare_servers" = 2;
|
||||||
"pm.max_spare_servers" = 4;
|
# "pm.max_spare_servers" = 4;
|
||||||
"pm.max_requests" = 500;
|
# "pm.max_requests" = 500;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
|
|
||||||
drive = {
|
drive = {
|
||||||
@ -316,52 +316,53 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
"designyourfuture.amandoline-creations.fr" = base {
|
"designyourfuture.amandoline-creations.fr" = base {
|
||||||
"/" = {
|
"/".alias = "/var/www/amandoleene-designyourfuture/";
|
||||||
priority = 200;
|
# "/" = {
|
||||||
extraConfig = ''
|
# priority = 200;
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
# extraConfig = ''
|
||||||
'';
|
# try_files $uri $uri/ /index.php$is_args$args;
|
||||||
};
|
# '';
|
||||||
"~ \\.php$" = {
|
# };
|
||||||
priority = 500;
|
# "~ \\.php$" = {
|
||||||
extraConfig = ''
|
# priority = 500;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
# extraConfig = ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools."wordpress-designyourfuture".socket};
|
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_index index.php;
|
# fastcgi_pass unix:${config.services.phpfpm.pools."wordpress-designyourfuture".socket};
|
||||||
include "${config.services.nginx.package}/conf/fastcgi.conf";
|
# fastcgi_index index.php;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
# include "${config.services.nginx.package}/conf/fastcgi.conf";
|
||||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
# fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
# Mitigate https://httpoxy.org/ vulnerabilities
|
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
||||||
fastcgi_param HTTP_PROXY "";
|
# # Mitigate https://httpoxy.org/ vulnerabilities
|
||||||
fastcgi_intercept_errors off;
|
# fastcgi_param HTTP_PROXY "";
|
||||||
fastcgi_buffer_size 16k;
|
# fastcgi_intercept_errors off;
|
||||||
fastcgi_buffers 4 16k;
|
# fastcgi_buffer_size 16k;
|
||||||
fastcgi_connect_timeout 300;
|
# fastcgi_buffers 4 16k;
|
||||||
fastcgi_send_timeout 300;
|
# fastcgi_connect_timeout 300;
|
||||||
fastcgi_read_timeout 300;
|
# fastcgi_send_timeout 300;
|
||||||
'';
|
# fastcgi_read_timeout 300;
|
||||||
};
|
# '';
|
||||||
"~ /\\." = {
|
# };
|
||||||
priority = 800;
|
# "~ /\\." = {
|
||||||
extraConfig = "deny all;";
|
# priority = 800;
|
||||||
};
|
# extraConfig = "deny all;";
|
||||||
"~* /(?:uploads|files)/.*\\.php$" = {
|
# };
|
||||||
priority = 900;
|
# "~* /(?:uploads|files)/.*\\.php$" = {
|
||||||
extraConfig = "deny all;";
|
# priority = 900;
|
||||||
};
|
# extraConfig = "deny all;";
|
||||||
"~* \\.(js|css|png|jpg|jpeg|gif|ico)$" = {
|
# };
|
||||||
priority = 1000;
|
# "~* \\.(js|css|png|jpg|jpeg|gif|ico)$" = {
|
||||||
extraConfig = ''
|
# priority = 1000;
|
||||||
expires max;
|
# extraConfig = ''
|
||||||
log_not_found off;
|
# expires max;
|
||||||
'';
|
# log_not_found off;
|
||||||
};
|
# '';
|
||||||
} // {
|
# };
|
||||||
root = "/var/www/wordpress-designyourfuture";
|
} // {
|
||||||
extraConfig = ''
|
# root = "/var/www/wordpress-designyourfuture";
|
||||||
index index.php;
|
# extraConfig = ''
|
||||||
'';
|
# index index.php;
|
||||||
};
|
# '';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -392,10 +393,10 @@ in
|
|||||||
|
|
||||||
python-ci.enable = true;
|
python-ci.enable = true;
|
||||||
|
|
||||||
mysql = {
|
# mysql = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
package = pkgs.mariadb;
|
# package = pkgs.mariadb;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nginx.serviceConfig = {
|
systemd.services.nginx.serviceConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user