Skip to content

Instantly share code, notes, and snippets.

@xydinesh
Last active February 1, 2018 22:11
Show Gist options
  • Save xydinesh/dcab164fe16fe15cda4f74e90257e321 to your computer and use it in GitHub Desktop.
Save xydinesh/dcab164fe16fe15cda4f74e90257e321 to your computer and use it in GitHub Desktop.
Nginx configuration for revers proxy osrm backend
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
listen 80;
location /table/v1/driving { proxy_pass http://localhost:5000; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment