当前位置:   article > 正文

postgrest的https配置ssl_apipost怎么修改tls

apipost怎么修改tls
  1. server {
  2. listen 443;
  3. server_name xxxxx.com;
  4. ssl on;
  5. ssl_certificate /etc/nginx/cert1/xxx.pem;
  6. ssl_certificate_key /etc/nginx/cert1/xxx.key;
  7. ssl_session_timeout 5m;
  8. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  9. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  10. ssl_prefer_server_ciphers on;
  11. location /{
  12. proxy_redirect off;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_set_header X-Forwarded-Proto $scheme;
  16. proxy_set_header Host $http_host;
  17. proxy_set_header X-NginX-Proxy true;
  18. proxy_set_header Connection "";
  19. #proxy_set_header Host $host;
  20. proxy_cookie_path / "/; Httponly; Secure; SameSite=None";
  21. proxy_set_header Cookie $http_cookie;
  22. proxy_pass http://127.0.0.1:666;
  23. }
  24. location /xapi/ {
  25. default_type application/json;
  26. proxy_hide_header Content-Location;
  27. add_header Content-Location /api/$upstream_http_content_location;
  28. proxy_set_header Connection "";
  29. proxy_http_version 1.1;
  30. proxy_pass http://127.0.0.1:4001/;
  31. }
  32. gzip on;
  33. gzip_min_length 1k;
  34. gzip_buffers 4 16k;
  35. gzip_comp_level 5;
  36. gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php;
  37. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/657163
推荐阅读
相关标签
  

闽ICP备14008679号