2024-05-05 11:02:14 +02:00
|
|
|
{config, pkgs, self, ...}:
|
2024-05-01 19:33:12 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"missing.ninja" = {
|
|
|
|
serverAliases = [ "joens.zone" "joens.website" "joens.site" "joens.online" "joens.link" "joens.international" "joens.family" "joens.digital" "joens.blog" "net0loggy.net" "clan-war.net" "net0loggy.de" "dtg-c.de" ];
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
|
|
|
"webmail.missing.ninja" = {
|
|
|
|
serverAliases = [ "joens.email" ];
|
|
|
|
};
|
|
|
|
"pad.missing.ninja" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/".proxyPass = "http://localhost:3333";
|
|
|
|
locations."/socket.io/" = {
|
|
|
|
proxyPass = "http://localhost:3333";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
extraConfig =
|
|
|
|
"proxy_ssl_server_name on;"
|
|
|
|
;
|
|
|
|
};
|
|
|
|
};
|
2024-05-05 10:00:13 +02:00
|
|
|
"test.missing.ninja" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
};
|
2024-05-01 19:33:12 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-01 19:34:08 +02:00
|
|
|
services.hedgedoc = {
|
2024-05-01 19:33:12 +02:00
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
db = {
|
|
|
|
dialect = "sqlite";
|
|
|
|
torage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
|
|
|
|
};
|
|
|
|
domain = "pad.missing.ninja";
|
|
|
|
port = 3333;
|
|
|
|
useSSL = false;
|
|
|
|
protocolUseSSL = true;
|
|
|
|
};
|
|
|
|
};
|
2024-05-05 09:56:19 +02:00
|
|
|
|
|
|
|
services.wordpress.webserver = "nginx";
|
2024-05-05 10:39:36 +02:00
|
|
|
services.phpfpm.phpOptions = ''
|
|
|
|
post_max_size = "64M"
|
|
|
|
upload_max_filesize = "64M"
|
|
|
|
max_execution_time = 300
|
|
|
|
max_input_time = 300
|
|
|
|
'';
|
2024-05-05 09:56:19 +02:00
|
|
|
|
2024-05-05 11:02:54 +02:00
|
|
|
services.wordpress.sites."test.missing.ninja" = with self.packages.${config.nixpkgs.hostPlatform.system}; {
|
2024-05-05 10:04:02 +02:00
|
|
|
themes = [
|
|
|
|
madara
|
|
|
|
madara-child
|
2024-05-05 10:25:42 +02:00
|
|
|
pkgs.wordpressPackages.themes.twentytwentythree
|
2024-05-05 10:04:02 +02:00
|
|
|
];
|
|
|
|
plugins = [
|
|
|
|
madara-core
|
|
|
|
madara-shortcodes
|
2024-05-05 11:02:14 +02:00
|
|
|
option-tree
|
2024-05-05 10:04:02 +02:00
|
|
|
option-tree-lean
|
2024-05-05 11:02:14 +02:00
|
|
|
widget-logic
|
2024-05-05 10:04:02 +02:00
|
|
|
];
|
2024-05-05 09:56:19 +02:00
|
|
|
settings = {
|
|
|
|
FORCE_SSL_ADMIN = true;
|
|
|
|
};
|
|
|
|
extraConfig = ''
|
|
|
|
$_SERVER['HTTPS']='on';
|
|
|
|
'';
|
|
|
|
};
|
2024-05-01 19:33:12 +02:00
|
|
|
}
|