39 lines
993 B
Nix
39 lines
993 B
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
services.webstack.instances."vcard.cloonar.com" = {
|
|
enableDefaultLocations = false;
|
|
enableMysql = false;
|
|
authorizedKeys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMkN2nAB8RIJqeYl/d20P0viXmKsGDIrUIl5N+HAN99b"
|
|
];
|
|
extraConfig = ''
|
|
add_header X-Frame-Options "SAMEORIGIN";
|
|
add_header X-Content-Type-Options "nosniff";
|
|
|
|
index index.php
|
|
|
|
charset utf-8;
|
|
'';
|
|
locations."/favicon.ico".extraConfig = ''
|
|
log_not_found off;
|
|
access_log off;
|
|
'';
|
|
locations."/robots.txt".extraConfig = ''
|
|
access_log off;
|
|
log_not_found off;
|
|
'';
|
|
|
|
locations."/".extraConfig = ''
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
'';
|
|
phpPackage = pkgs.php82.withExtensions ({ enabled, all }:
|
|
enabled ++ [ all.imagick ]);
|
|
phpOptions = ''
|
|
opcache.enable=1
|
|
opcache.memory_consumption=128
|
|
opcache.validate_timestamps=0
|
|
opcache.revalidate_path=0
|
|
'';
|
|
};
|
|
}
|