Nix-Config/system/shared/services/nginx.nix

37 lines
749 B
Nix
Raw Normal View History

2023-07-07 07:22:46 +00:00
{ config, pkgs, inputs, ... }:
{
services.nginx = {
enable = true;
2023-09-27 14:38:38 +00:00
gitweb = {
enable = true;
virtualHost = "git.tsvallender.co.uk";
location = "/home/tsv/git";
};
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."syncthing.tsvallender.co.uk" = {
forceSSL = true;
enableACME = true;
locations."/" = {
2023-09-27 13:14:51 +00:00
proxyPass = "http://127.0.0.1:8384";
};
2023-07-07 07:22:46 +00:00
};
2023-09-27 13:49:16 +00:00
virtualHosts."git.tsvallender.co.uk" = {
forceSSL = true;
enableACME = true;
};
2023-07-07 07:22:46 +00:00
};
security.acme = {
acceptTerms = true;
defaults = {
email = "t+acme@tsvallender.co.uk";
};
};
2023-07-07 07:22:46 +00:00
}