appserver.conf 850 B

123456789101112131415161718192021222324252627
  1. server {
  2. listen 80;
  3. server_name apptest.wildfirechat.cn;
  4. rewrite ^(.*)$ https://apptest.wildfirechat.cn permanent;
  5. location ~ / {
  6. index index.html index.php index.htm;
  7. }
  8. }
  9. server {
  10. listen 443 ssl;
  11. server_name apptest.wildfirechat.cn;
  12. root html;
  13. index index.html index.htm;
  14. client_max_body_size 30m; #文件最大大小
  15. ssl_certificate cert/app.pem;
  16. ssl_certificate_key cert/app.key;
  17. ssl_session_timeout 5m;
  18. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  19. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  20. ssl_prefer_server_ciphers on;
  21. ## send request back to app server ##
  22. location / {
  23. proxy_pass http://127.0.0.1:8888;
  24. }
  25. }