Advertisement
gassanpavel

Untitled

Jan 29th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name _;
  4. return 301 https://$host$request_uri;
  5. }
  6. server {
  7. ### Product proxy
  8. listen 443 ssl;
  9. include /etc/nginx/cert.conf;
  10. ssl_protocols TLSv1.2 TLSv1.3;
  11. ssl_prefer_server_ciphers off;
  12. include /etc/nginx/proxy_params;
  13. underscores_in_headers on;
  14.  
  15. location /setup/ {
  16. proxy_pass http://192.168.0.187:5002/;
  17. proxy_ssl_verify off;
  18. proxy_http_version 1.1;
  19. proxy_read_timeout 300;
  20. proxy_set_header Connection $http_connection;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_pass_request_headers on;
  23. proxy_set_header Host $host;
  24. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. }
  27.  
  28. location /plugin/ {
  29. proxy_pass http://192.168.0.187:5001/;
  30. proxy_ssl_verify off;
  31. proxy_http_version 1.1;
  32. proxy_read_timeout 300;
  33. proxy_set_header Connection $http_connection;
  34. proxy_set_header Upgrade $http_upgrade;
  35. proxy_pass_request_headers on;
  36. proxy_set_header Host $host;
  37. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  38. proxy_set_header X-Real-IP $remote_addr;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement