Ajout : shell.heureux-cyclage.org .
[lhc/ateliers.git] / etc / nginx / site.d / shell / site.conf
1 server_name
2 shell.heureux-cyclage.org;
3
4 client_body_buffer_size 1024k;
5 client_max_body_size 10m;
6
7 proxy_buffers 16 64k;
8 proxy_buffer_size 128k;
9
10 location ~ /\. {
11 access_log off;
12 deny all;
13 log_not_found off;
14 }
15 location / {
16 auth_basic "ni dieu, ni maitre, ni moteur";
17 auth_basic_user_file /etc/shellinabox/htpasswd;
18 proxy_next_upstream error timeout
19 invalid_header
20 http_500
21 http_502
22 http_503;
23 # NOTE: force timeouts if the backend dies.
24 proxy_pass http://shell;
25 proxy_redirect off;
26 # NOTE: by default, do not forward anything
27 proxy_read_timeout 500;
28 }
29
30 # vim: ft=sh