Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. worker_processes 1;
  2. daemon off;
  3.  
  4. events {
  5. worker_connections 1024;
  6. }
  7.  
  8. http {
  9. include /opt/graylog/conf/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format graylog_format 'nginx: $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" <msec=$msec|connection=$connection|connection_requests=$connection_requests|millis=$request_time>';
  12. access_log /dev/stdout graylog_format;
  13.  
  14. server {
  15. listen 80;
  16. location / {
  17. proxy_pass http://localhost:9000;
  18. proxy_http_version 1.1;
  19. proxy_set_header Host $http_host;
  20. proxy_set_header X-Forwarded-Host $host;
  21. proxy_set_header X-Forwarded-Server $host;
  22. proxy_set_header X-Real-IP $remote_addr;
  23. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24. proxy_set_header X-Graylog-Server-URL http://34.249.85.136/api;
  25. proxy_pass_request_headers on;
  26. proxy_connect_timeout 150;
  27. proxy_send_timeout 100;
  28. proxy_read_timeout 100;
  29. proxy_buffers 4 32k;
  30. client_max_body_size 8m;
  31. client_body_buffer_size 128k;
  32. }
  33. error_page 502 /502.html;
  34. location /502.html {
  35. internal;
  36. }
  37. }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement