Skip to content

Commit

Permalink
Enable https on new cache
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 20, 2023
1 parent ac1b7e1 commit 4f511e7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions hosts/binarycache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,16 @@
nameservers = ["1.1.1.1" "8.8.8.8"];
};

# acme gets https certificates when we have dns
# security.acme = {
# acceptTerms = true;
# defaults.email = "[email protected]";
# };
security.acme = {
acceptTerms = true;
defaults.email = "[email protected]";
};

services.nginx = {
virtualHosts = {
# "cache.vedenemo.dev" = {
"_" = {
# enableACME = true;
# forceSSL = true;
"cache.vedenemo.dev" = {
enableACME = true;
forceSSL = true;
default = true;
locations."/" = {
proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
Expand Down

0 comments on commit 4f511e7

Please sign in to comment.