Files
stubbfelnix/services/nginx.nix
2017-11-17 02:11:40 +01:00

24 lines
631 B
Nix

{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."git.stubbe.rocks" = {
# enableACME = true;
forceSSL = true;
sslCertificate = "/var/lib/acme/git.stubbe.rocks/fullchain.pem";
sslCertificateKey = "/var/lib/acme/git.stubbe.rocks/key.pem";
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
};
};
}