summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-24 12:17:46 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-24 12:17:46 +0100
commitca22017caf8255aa214333468daff387a7e1a048 (patch)
treed7d23b701ad61e74ccfb6680aeb49e5472998d98
parent3765ee37aca35d4173f583f039e18486e2eb1b5d (diff)
downloadnixos-ca22017caf8255aa214333468daff387a7e1a048.tar
nixos-ca22017caf8255aa214333468daff387a7e1a048.tar.gz
nixos-ca22017caf8255aa214333468daff387a7e1a048.tar.bz2
nixos-ca22017caf8255aa214333468daff387a7e1a048.tar.xz
nixos-ca22017caf8255aa214333468daff387a7e1a048.zip
nginx config
-rw-r--r--custom/ymir-nginx.nix21
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