2023-02-05 16:27:09 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
domain = "tea-docs.typo3.localhost";
|
|
|
|
documentRoot = "${config.custom.web-development.rootPath}/typo3/tea/Documentation-GENERATED-temp/Result/project/0.0.0/";
|
|
|
|
in {
|
|
|
|
services = {
|
|
|
|
|
2023-02-07 08:57:10 +01:00
|
|
|
httpd.virtualHosts.${domain} = {
|
2023-02-05 16:27:09 +01:00
|
|
|
forceSSL = true;
|
|
|
|
sslServerCert = "${config.custom.web-development.certFolder}${domain}.pem";
|
|
|
|
sslServerKey = "${config.custom.web-development.certFolder}${domain}-key.pem";
|
|
|
|
|
|
|
|
inherit documentRoot;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
<Directory ${documentRoot}>
|
|
|
|
AllowOverride All
|
|
|
|
Require all granted
|
|
|
|
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
|
|
|
DirectoryIndex index.html Index.html
|
|
|
|
</Directory>
|
|
|
|
'';
|
|
|
|
};
|
2023-02-07 08:57:10 +01:00
|
|
|
|
2023-02-05 16:27:09 +01:00
|
|
|
};
|
|
|
|
}
|