You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
704 B
Nginx Configuration File
35 lines
704 B
Nginx Configuration File
worker_processes auto;
|
|
worker_cpu_affinity auto;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
pid /var/run/nginx.pid;
|
|
|
|
#daemon off;
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
# rewrite_log on;
|
|
include mime.types;
|
|
default_type application/json;
|
|
access_log /var/log/nginx/access.log;
|
|
sendfile on;
|
|
# tcp_nopush on;
|
|
keepalive_timeout 3;
|
|
# tcp_nodelay on;
|
|
gzip on;
|
|
|
|
server {
|
|
listen 8080 default_server;
|
|
server_name _;
|
|
|
|
location / {
|
|
index index.html;
|
|
root /var/www/html;
|
|
try_files $uri $uri/ =404;
|
|
absolute_redirect off;
|
|
}
|
|
}
|
|
}
|