Advertisement
Javi

nginx: proxy configuration

Apr 11th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # ---------------------
  2. # custom_nginx.template
  3. # ---------------------
  4.  
  5. worker_processes ${{NGINX_WORKER_PROCESSES}};
  6. daemon ${{NGINX_DAEMON}};
  7. pid pids/nginx.pid;
  8. error_log logs/error.log ${{LOG_LEVEL}};
  9.  
  10. proxy_cache_path ~ levels=1:2 keys_zone=maincache:25m max_size=25m inactive=60m use_temp_path=off;
  11.  
  12. events {
  13. use epoll; # custom setting
  14. multi_accept on;
  15. }
  16.  
  17. http {
  18. include 'nginx-kong.conf';
  19. server {
  20. server_name kong;
  21.  
  22. location / {
  23. proxy_cache my_cache;
  24. proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement