worker_processes 2;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
open_file_cache max=1000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
server_tokens off;
server {
listen 80;
expires max;
root /node/learn-memory/public/;
location / {
proxy_pass http://127.0.0.1:7772/;
}
location /views/ {
try_files $uri $uri/ =404;
}
location /javascripts/ {
try_files $uri $uri/ =404;
}
location /fonts/ {
try_files $uri $uri/ =404;
}
location /langs/ {
try_files $uri $uri/ =404;
}
}
}
Created
June 18, 2016 11:50
-
-
Save cedced19/7d27e51f802cfddf4b7a4aff1eac6542 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment