nixpkgs/systems/hikari/web-development/static-files.nix
Daniel Siepmann 3dfe633ac2
Add EXT:tea docs rendering setup
* Use podman instead of docker.
* Provide wrapper script for rendering.
* Add rendering result as local domain.
2023-02-05 16:28:17 +01:00

27 lines
763 B
Nix

{ 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 = {
httpd.virtualHosts.${domain} = {
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>
'';
};
};
}