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}"
];
# ACME
security.acme = {
acceptTerms = true;
defaults.email = "sky.hearn@pm.me";
};
# wireguard server setup
# enable NAT
networking.nat.enable = true;

View File

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