17 lines
454 B
Nix
17 lines
454 B
Nix
{ config, pkgs, ... }: {
|
|
services.lychee = {
|
|
enable = true;
|
|
package = pkgs.rz.lychee-gallery;
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
website = "photos.ens.wtf";
|
|
settings.APP_URL = "https://${config.services.lychee.website}";
|
|
};
|
|
services.phpfpm.pools."photos.ens.wtf".settings = {
|
|
pm = "dynamic";
|
|
"pm.max_children" = 10;
|
|
"pm.start_servers" = 3;
|
|
"pm.min_spare_servers" = 1;
|
|
"pm.max_spare_servers" = 3;
|
|
};
|
|
}
|