Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- worker_rlimit_nofile 8192;
- events {
- worker_connections 2048;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- error_log /var/log/nginx/error.log;
- include /department/api/conf/pools/api.conf;
- server {
- listen 8080;
- proxy_set_header Host "api.mercadolibre.com";
- proxy_set_header X-Nginx-Host $hostname;
- add_header X-Nginx-Host $hostname;
- server_name api.mercadolibre.com "";
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 172.0.0.0/8;
- deny all;
- }
- include /department/api/conf/rules/api.conf;
- location /ping {
- echo "pong";
- }
- location / {
- return 404;
- }
- }
- }
Add Comment
Please, Sign In to add comment