davama

graylog api redirect

Aug 10th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /etc/graylog/server/server.conf
  2. ....
  3. ....
  4. rest_listen_uri = http://127.0.0.1:9000/api/
  5. web_listen_uri = http://127.0.0.1:9000/
  6. elasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9300
  7. elasticsearch_network_host = 127.0.0.1
  8.  
  9.  
  10. /etc/nginx/nginx.conf
  11. ...
  12. ...
  13. location / {
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_set_header Host $http_host;
  16. proxy_set_header X-Graylog-Server-URL https://usdsb.nwk.jwm2.net/api;
  17. proxy_pass http://localhost:9000;
  18. }
  19. location /api {
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. proxy_set_header Host $http_host;
  22. proxy_pass http://localhost:9000;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment