Skip to content

Instantly share code, notes, and snippets.

@jeaye

jeaye/makeVirtualHost.nix Secret

Created Jan 17, 2021
Embed
What would you like to do?
makeVirtualHost = domain:
{
hostName = domain;
serverAliases = [("www." + domain)];
enableSSL = false;
documentRoot = "/etc/user/http/" + domain;
};
services.httpd.virtualHosts = (map makeVirtualHost domains);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment