diff options
| -rw-r--r-- | custom/ymir-nginx.nix | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index 4c3880ce..3664ad7d 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
| @@ -116,14 +116,21 @@ in { | |||
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | server { | 118 | server { |
| 119 | listen *:80; | 119 | http { |
| 120 | listen *:443 ssl; | 120 | listen *:80; |
| 121 | listen [::]:80; | 121 | listen *:443 ssl; |
| 122 | listen [::]:443 ssl; | 122 | listen [::]:80; |
| 123 | server_name git.yggdrasil.li www.git.yggdrasil.li; | 123 | listen [::]:443 ssl; |
| 124 | ssl_certificate /etc/nginx/ssl/git.yggdrasil.li/fullchain.pem; | ||
| 125 | ssl_certificate_key /etc/nginx/ssl/git.yggdrasil.li/privkey.pem; | ||
| 126 | server_name git.yggdrasil.li; | ||
| 127 | } | ||
| 124 | 128 | ||
| 125 | ssl_certificate /etc/nginx/ssl/$server_name/fullchain.pem; | 129 | http { |
| 126 | ssl_certificate_key /etc/nginx/ssl/$server_name/privkey.pem; | 130 | listen *:80; |
| 131 | listen [::]:80; | ||
| 132 | server_name www.git.yggdrasil.li; | ||
| 133 | } | ||
| 127 | 134 | ||
| 128 | root ${pkgs.cgit}/cgit; | 135 | root ${pkgs.cgit}/cgit; |
| 129 | 136 | ||
