y2kbug

demo-nginx-sites-conf

Sep 29th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. server{
  2. location / {
  3. proxy_set_header Host $host;
  4. proxy_set_header X-Real-IP $remote_addr;
  5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  6. proxy_set_header X-Forwarded-Proto $scheme;
  7. proxy_pass http://10.8.0.2:5000;
  8. proxy_read_timeout 90;
  9. }
  10.  
  11. server_name site1.test.dev;
  12.  
  13. listen 443 ssl http2;
  14. ssl_certificate /etc/nginx/conf.d/cert.pem;
  15. ssl_certificate_key /etc/nginx/conf.d/private.key;
  16. ssl_client_certificate /etc/nginx/conf.d/origin-pull-ca.pem;
  17. ssl_verify_client on;
  18. }
  19.  
  20. server{
  21. location / {
  22. proxy_set_header Host $host;
  23. proxy_set_header X-Real-IP $remote_addr;
  24. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  25. proxy_set_header X-Forwarded-Proto $scheme;
  26. proxy_pass http://10.8.0.2:5001;
  27. proxy_read_timeout 90;
  28. }
  29.  
  30. server_name site2.test.dev;
  31.  
  32. listen 443 ssl http2;
  33. ssl_certificate /etc/nginx/conf.d/cert.pem;
  34. ssl_certificate_key /etc/nginx/conf.d/private.key;
  35. ssl_client_certificate /etc/nginx/conf.d/origin-pull-ca.pem;
  36. ssl_verify_client on;
  37. }
Add Comment
Please, Sign In to add comment