Ajout : shell.heureux-cyclage.org .
[lhc/ateliers.git] / etc / nginx / site.d / shell / site.conf
diff --git a/etc/nginx/site.d/shell/site.conf b/etc/nginx/site.d/shell/site.conf
new file mode 100644 (file)
index 0000000..854ddc6
--- /dev/null
@@ -0,0 +1,30 @@
+server_name
+ shell.heureux-cyclage.org;
+
+client_body_buffer_size 1024k;
+client_max_body_size 10m;
+
+proxy_buffers 16 64k;
+proxy_buffer_size 128k;
+
+location ~ /\. {
+       access_log off;
+       deny all;
+       log_not_found off;
+ }
+location / {
+       auth_basic "ni dieu, ni maitre, ni moteur";
+       auth_basic_user_file /etc/shellinabox/htpasswd;
+       proxy_next_upstream error timeout
+        invalid_header
+        http_500
+        http_502
+        http_503;
+               # NOTE: force timeouts if the backend dies.
+       proxy_pass http://shell;
+       proxy_redirect off;
+               # NOTE: by default, do not forward anything
+       proxy_read_timeout 500;
+ }
+
+# vim: ft=sh