daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. worker_processes  1;
  2. worker_rlimit_nofile 8192;
  3.  
  4. events {
  5.   worker_connections  2048;
  6. }
  7.  
  8. http {
  9.   include       mime.types;
  10.   default_type  application/octet-stream;
  11.  
  12.   error_log /var/log/nginx/error.log;
  13.  
  14.   include /department/api/conf/pools/api.conf;
  15.  
  16.   server {
  17.     listen 8080;
  18.     proxy_set_header Host "api.mercadolibre.com";
  19.     proxy_set_header X-Nginx-Host $hostname;
  20.     add_header  X-Nginx-Host $hostname;
  21.  
  22.     server_name api.mercadolibre.com "";
  23.     location /nginx_status {
  24.         stub_status on;
  25.         access_log off;
  26.         allow 172.0.0.0/8;
  27.         deny all;
  28.     }
  29.  
  30.    
  31.     include /department/api/conf/rules/api.conf;
  32.  
  33.     location /ping {
  34.         echo "pong";
  35.     }  
  36.  
  37.     location / {
  38.         return 404;
  39.     }
  40.   }
  41. }
RAW Paste Data
Top