Skip to content

Instantly share code, notes, and snippets.

@serainville
Created June 6, 2019 05:23
Show Gist options
  • Save serainville/faa59747c3f74c8b50c520a8fabb8280 to your computer and use it in GitHub Desktop.
Save serainville/faa59747c3f74c8b50c520a8fabb8280 to your computer and use it in GitHub Desktop.
user www-data
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
access_log /dev/stdout;
error_log /dev/stdout;
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;
index index.html index.html
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root /var/www/html;
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.socket;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment