代码拉取完成,页面将自动刷新
user nginx;
worker_processes auto;
daemon off;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
##
# Basic Settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'AES128+EECDH:AES128+EDH:HIGH:!aNULL:!MD5:!3DES:!RC4:!CAMELLIA';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
# add_header Strict-Transport-Security 'max-age=63072000; includeSubdomains; preload';
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
##
# Logging Settings
log_format keyvalue '$remote_addr – $remote_user [$time_iso8601] "$request" '
'status=$status '
'forwarded_for="$http_x_forwarded_for" '
'user_agent="$http_user_agent" '
'referer="$http_referer" '
'bytes_sent=$body_bytes_sent '
'req_time=$request_time '
'server=nginx';
access_log /dev/stdout keyvalue;
error_log /dev/stderr;
server {
server_name _;
root /srv/www;
location / {
expires max;
add_header Cache-Control public;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。