Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- daemon off;
- events {
- worker_connections 1024;
- }
- http {
- include /opt/graylog/conf/nginx/mime.types;
- default_type application/octet-stream;
- 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>';
- access_log /dev/stdout graylog_format;
- server {
- listen 80;
- location / {
- proxy_pass http://localhost:9000;
- proxy_http_version 1.1;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Graylog-Server-URL http://34.249.85.136/api;
- proxy_pass_request_headers on;
- proxy_connect_timeout 150;
- proxy_send_timeout 100;
- proxy_read_timeout 100;
- proxy_buffers 4 32k;
- client_max_body_size 8m;
- client_body_buffer_size 128k;
- }
- error_page 502 /502.html;
- location /502.html {
- internal;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement