Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nginx.conf
# Do not edit this file
# It will be overwritten each time nginx-rc upgrade
# Editing this file manually might break RunCloud System
# If you think there is a bug, contact us at bug@runcloud.io
worker_processes auto;
worker_rlimit_nofile 65535;
user runcloud-www runcloud-www;
pid /run/nginx-rc.pid;
pcre_jit on;
events {
use epoll;
worker_connections 65535;
multi_accept on;
}
http {
include /etc/nginx-rc/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format traffic '$bytes_sent';
access_log off;
aio threads;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
disable_symlinks if_not_owner;
client_body_timeout 20;
client_header_timeout 20;
keepalive_timeout 30;
client_header_buffer_size 128;
client_max_body_size 100m;
open_file_cache max=2000 inactive=20s;
open_file_cache_valid 60s;
open_file_cache_min_uses 5;
open_file_cache_errors off;
keepalive_requests 200;
reset_timedout_connection on;
server_names_hash_bucket_size 128;
gzip on;
gzip_static on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_buffers 16 8k;
gzip_disable "msie6";
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
upstream backend {
server 127.0.0.1:81;
}
include /etc/nginx-rc/main-extra.conf;
include /etc/nginx-rc/default_server.conf;
include /etc/nginx-rc/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment