update nginx.conf
This commit is contained in:
parent
64c21878f5
commit
55b2ac03cc
@ -58,6 +58,9 @@ http {
|
||||
server 127.0.0.1:8087;
|
||||
}
|
||||
|
||||
upstream typesense {
|
||||
server 127.0.0.1:8108;
|
||||
}
|
||||
|
||||
init_by_lua_file lua/settings.lua;
|
||||
|
||||
@ -272,6 +275,28 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name typesense.amass.fun;
|
||||
|
||||
client_header_timeout 120s;
|
||||
client_body_timeout 120s;
|
||||
client_max_body_size 512m;
|
||||
|
||||
ssl_certificate cert/typesense.amass.fun.pem;
|
||||
ssl_certificate_key cert/typesense.amass.fun.key;
|
||||
ssl_session_timeout 5m; #缓存有效期
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #加密算法
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #安全链接可选的加密协议
|
||||
ssl_prefer_server_ciphers on; #使用服务器端的首选算法
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://typesense;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name amass.fun;
|
||||
|
Loading…
Reference in New Issue
Block a user