mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-17 01:54:52 +00:00
1bf4973648
- make supervisorctl happy - fix avatar path - refine logging config - add nginx buffer path
58 lines
1.7 KiB
Nginx Configuration File
58 lines
1.7 KiB
Nginx Configuration File
user nobody;
|
|
daemon off;
|
|
pid /tmp/nginx.pid;
|
|
worker_processes auto;
|
|
pcre_jit on;
|
|
error_log /data/log/nginx_error.log warn;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
server_tokens off;
|
|
keepalive_timeout 65;
|
|
sendfile on;
|
|
tcp_nodelay on;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_types application/javascript text/css;
|
|
client_body_temp_path /tmp 1 2;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /data/log/nginx_access.log main;
|
|
|
|
upstream backend {
|
|
server 127.0.0.1:8080;
|
|
keepalive 32;
|
|
}
|
|
|
|
server {
|
|
listen 8000 default_server;
|
|
server_name _;
|
|
|
|
include common.conf;
|
|
}
|
|
|
|
server {
|
|
listen 1443 ssl http2 default_server;
|
|
server_name _;
|
|
ssl_certificate /data/ssl/server.crt;
|
|
ssl_certificate_key /data/ssl/server.key;
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
|
|
ssl_prefer_server_ciphers on;
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
include common.conf;
|
|
}
|
|
|
|
}
|
|
|