dy.info666.com.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. server {
  2. listen 80;
  3. listen 443 ssl;
  4. server_name dy.info666.com;
  5. #charset koi8-r;
  6. ssl_certificate /etc/nginx/cert/info666/8517678_dy.info666.com_nginx/8517678_dy.info666.com.pem;
  7. ssl_certificate_key /etc/nginx/cert/info666/8517678_dy.info666.com_nginx/8517678_dy.info666.com.key;
  8. ssl_session_timeout 5m;
  9. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  10. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  11. ssl_prefer_server_ciphers on;
  12. client_body_buffer_size 128k;
  13. client_max_body_size 100m;
  14. #access_log logs/host.access.log main;
  15. location /dy_miniprogram/ {
  16. proxy_pass http://127.0.0.1:7070/;
  17. proxy_redirect off;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Forwarded-Prefix '/dy_miniprogram';
  22. }
  23. location /dy_manage/ {
  24. proxy_pass http://127.0.0.1:7071/;
  25. proxy_redirect off;
  26. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27. proxy_set_header X-Real-IP $remote_addr;
  28. proxy_set_header Host $host;
  29. proxy_set_header X-Forwarded-Prefix '/dy_manage';
  30. }
  31. location /dy_api/ {
  32. proxy_pass http://127.0.0.1:7072/;
  33. proxy_redirect off;
  34. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35. proxy_set_header X-Real-IP $remote_addr;
  36. proxy_set_header Host $host;
  37. proxy_set_header X-Forwarded-Prefix '/dy_api';
  38. }
  39. error_page 500 502 503 504 /50x.html;
  40. location = /50x.html {
  41. root html;
  42. }
  43. }