Correction : force le login en HTTPS.
[lhc/ateliers.git] / etc / nginx / site.d / cyclo-wiki / site.conf
index 9a50e1f..b7dc723 100644 (file)
@@ -52,6 +52,10 @@ location ~ ^/gitweb($|/) {
 
 location /cgi/ikiwiki.cgi {
        include /etc/nginx/conf.d/fastcgi.conf;
+       set $r "$https$arg_do";
+       if ($r = "prefs") {
+               return 301 https://$host$request_uri;
+        }
        fastcgi_index cgi/ikiwiki.cgi;
        fastcgi_pass unix:/run/spawn-fcgi/cyclo-wiki;
  }