Initial repo for search and displace code (written for, rather than the tools used in the processing)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.1 KiB

{ config, sqlite, pkgs, ... }:
let
sourcePath = import ./sourcecode.nix { inherit pkgs; };
in
{
boot.cleanTmpDir = true;
networking.hostName = "searchanddisplace";
networking.firewall.allowPing = true;
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 mykey"
];
environment.systemPackages = with pkgs; [
neovim
];
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
virtualHosts."demo.searchanddisplace.com" = {
enableACME = true;
forceSSL = true;
root = sourcePath.source + ''/public'';
};
};
security.acme.certs = {
"demo.searchanddisplace.com".email = "demo@demo.searchanddisplace.com";
};
security.acme.acceptTerms = true;
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;
"catch_workers_output" = 1;
};
};
}