Skip to content

Commit bf64ce1

Browse files
authored
fix: Generate links with https when in production (#446)
1 parent e360103 commit bf64ce1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nix/web-security-tracker.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ in
146146
EVALUATION_LOGS_DIRECTORY = mkDefault "/var/log/web-security-tracker/evaluation";
147147
LOCAL_NIXPKGS_CHECKOUT = mkDefault "/var/lib/web-security-tracker/nixpkgs-repo";
148148
CVE_CACHE_DIR = mkDefault "/var/lib/web-security-tracker/cve-cache";
149+
ACCOUNT_DEFAULT_HTTP_PROTOCOL = mkDefault (with cfg; if production then "https" else "http");
149150
};
150151

151152
nginx.enable = true;

0 commit comments

Comments
 (0)