nevermind
This commit is contained in:
parent
747b249238
commit
c3a9afe007
1 changed files with 22 additions and 49 deletions
|
@ -43,59 +43,32 @@
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
additionalModules = [ pkgs.nginxModules.fancyindex ];
|
||||
virtualHosts = {
|
||||
# media = {
|
||||
# default = true;
|
||||
# # addSSL = true;
|
||||
# # enableACME = true;
|
||||
# root = "/media";
|
||||
# serverName = "_";
|
||||
# locations = {
|
||||
# "/" = {
|
||||
# tryFiles = "$uri $uri/ =404";
|
||||
# extraConfig = ''
|
||||
# fancyindex on;
|
||||
# fancyindex_name_length 256;
|
||||
# fancyindex_exact_size off;
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
stronnica = {
|
||||
virtualHosts.media = {
|
||||
default = true;
|
||||
# addSSL = true;
|
||||
enableACME = true;
|
||||
root = "/srv/http/stronnica";
|
||||
locations."~ \\.php$".extraConfig = ''
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools.mypool.socket};
|
||||
fastcgi_index index.php;
|
||||
# enableACME = true;
|
||||
|
||||
root = "/media";
|
||||
|
||||
serverName = "_";
|
||||
|
||||
locations = {
|
||||
"/" = {
|
||||
tryFiles = "$uri $uri/ =404";
|
||||
extraConfig = ''
|
||||
fancyindex on;
|
||||
fancyindex_name_length 256;
|
||||
fancyindex_exact_size off;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb;
|
||||
};
|
||||
|
||||
services.phpfpm.pools.mypool = {
|
||||
user = "nobody";
|
||||
settings = {
|
||||
"pm" = "dynamic";
|
||||
"listen.owner" = config.services.nginx.user;
|
||||
"pm.max_children" = 5;
|
||||
"pm.start_servers" = 2;
|
||||
"pm.min_spare_servers" = 1;
|
||||
"pm.max_spare_servers" = 3;
|
||||
"pm.max_requests" = 500;
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "krizej@protonmail.com";
|
||||
};
|
||||
# security.acme = {
|
||||
# acceptTerms = true;
|
||||
# defaults.email = "krizej@protonmail.com";
|
||||
# };
|
||||
|
||||
chuj = {
|
||||
system = {
|
||||
|
|
Loading…
Reference in a new issue