NixOS/hosts/luna/modules/services/nginx.nix

23 lines
568 B
Nix
Raw Normal View History

2023-10-27 23:02:52 -05:00
{ config, ... }:
{
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"gitlab.orion-technologies.io" = {
locations."/".proxyPass = "http://unix:/var/gitlab/state/tmp/sockets/gitlab.socket";
forceSSL = true;
enableACME = true;
root = "/var/www/gitlab";
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = "price@orion-technologies.io";
};
}