From 46c75cd0b819c724a859d6ed4b65c01d2c12d225 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Jan 2016 12:28:41 +0100 Subject: now with ssl --- custom/simp_le.nix | 1 + custom/ymir-nginx.nix | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/custom/simp_le.nix b/custom/simp_le.nix index 2143dfad..114a6028 100644 --- a/custom/simp_le.nix +++ b/custom/simp_le.nix @@ -16,6 +16,7 @@ let -f cert.pem \ -f fullchain.pem \ -f key.pem + [[ -e key.pem ]] && ln -s key.pem privkey.pem ''; in "${bash}/bin/bash ${script} > ${eject}/bin/logger -p auth.info" diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index f3b3fecb..747efb67 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix @@ -117,11 +117,11 @@ in { server { listen *:80; - #listen *:443 ssl; + listen *:443 ssl; listen [::]:80; - #listen [::]:443 ssl; - #ssl_certificate /etc/nginx/ssl/git.yggdrasil.li/fullchain.pem; - #ssl_certificate_key /etc/nginx/ssl/git.yggdrasil.li/privkey.pem; + listen [::]:443 ssl; + ssl_certificate /etc/nginx/ssl/git.yggdrasil.li/fullchain.pem; + ssl_certificate_key /etc/nginx/ssl/git.yggdrasil.li/key.pem; server_name git.yggdrasil.li; root ${pkgs.cgit}/cgit; -- cgit v1.2.3