赞
踩
- server {
- listen 443;
- server_name xxxxx.com;
- ssl on;
- ssl_certificate /etc/nginx/cert1/xxx.pem;
- ssl_certificate_key /etc/nginx/cert1/xxx.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_redirect off;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_set_header Connection "";
- #proxy_set_header Host $host;
- proxy_cookie_path / "/; Httponly; Secure; SameSite=None";
- proxy_set_header Cookie $http_cookie;
- proxy_pass http://127.0.0.1:666;
- }
-
-
- location /xapi/ {
- default_type application/json;
- proxy_hide_header Content-Location;
- add_header Content-Location /api/$upstream_http_content_location;
- proxy_set_header Connection "";
- proxy_http_version 1.1;
- proxy_pass http://127.0.0.1:4001/;
- }
-
-
-
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 5;
- gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php;
- }
![](https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。