Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- client_header_timeout 3m;
- client_body_timeout 3m;
- send_timeout 3m;
- client_max_body_size 5M;
- server_name test.com www.test.com
- location / {
- auth_basic "Restricted area";
- auth_basic_user_file /etc/nginx/htpasswd;
- proxy_pass http://localhost:8080;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto http;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $http_host;
- gzip on;
- }
- }
- client_max_body_size 5M;
- client_max_body_size 10M;
- proxy_connect_timeout 600;
- proxy_send_timeout 600;
- proxy_read_timeout 600;
- send_timeout 600;
Add Comment
Please, Sign In to add comment