]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/nginx/www.nix
nix: use pkgs.mkShell
[sourcephile-nix.git] / servers / mermet / nginx / www.nix
1 { pkgs, lib, config, ... }:
2 let inherit (config) networking;
3 inherit (config.services) nginx;
4 in
5 {
6 services.nginx = {
7 virtualHosts."www" = {
8 serverName = "www.${networking.domain}";
9 serverAliases =
10 [ networking.domain ]
11 ++ config.networking.domainAliases
12 ++ map (domainAlias: "www." + domainAlias)
13 config.networking.domainAliases;
14 forceSSL = false;
15 enableSSL = false;
16 #sslCertificate = nginx.virtualHosts."_".sslCertificate;
17 #sslCertificateKey = nginx.virtualHosts."_".sslCertificateKey;
18 globalRedirect = "git.${networking.domain}";
19 };
20 };
21 }