ACME and SSL stuff

This commit is contained in:
Sky Hearn 2024-03-07 05:34:47 +00:00
parent 3a8a31cb99
commit 6618318370
2 changed files with 9 additions and 3 deletions

View File

@ -29,6 +29,12 @@
"nixpkgs=${pkgs.path}" "nixpkgs=${pkgs.path}"
]; ];
# ACME
security.acme = {
acceptTerms = true;
defaults.email = "sky.hearn@pm.me";
};
# wireguard server setup # wireguard server setup
# enable NAT # enable NAT
networking.nat.enable = true; networking.nat.enable = true;

View File

@ -1,8 +1,8 @@
{ config, ... }: { config, ... }:
{ {
services.nginx.virtualHosts."git.my-domain.tld" = { services.nginx.virtualHosts."git.skymath.duckdns.org" = {
enableACME = false; enableACME = true;
forceSSL = false; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:3001/"; proxyPass = "http://localhost:3001/";
}; };