23 lines
568 B
Nix
23 lines
568 B
Nix
{ 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";
|
|
};
|
|
}
|