Advertisement
huezohuezo1990

Untitled

May 26th, 2023
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. server {
  2. listen 9393 ssl;
  3. server_name _;
  4.  
  5. ssl_certificate /etc/nginx/ssl/cert.pem;
  6. ssl_certificate_key /etc/nginx/ssl/key.pem;
  7.  
  8.  
  9. root /var/www/html;
  10. index index.html;
  11.  
  12. location / {
  13.  
  14. # Proxy timeouts
  15. proxy_connect_timeout 7200s;
  16. proxy_send_timeout 7200s;
  17. proxy_read_timeout 7200s;
  18.  
  19.  
  20.  
  21. add_header Access-Control-Allow-Origin "*";
  22.  
  23. client_max_body_size 512M;
  24.  
  25.  
  26. # include /etc/nginx/test.conf;
  27.  
  28. proxy_pass http://192.168.1.75:60800;
  29. root /usr/share/nginx/html;
  30. index index.html index.htm;
  31. proxy_set_header Host $http_host;
  32. proxy_set_header X-Real-IP $remote_addr;
  33. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  34. proxy_set_header X-Forwarded-Proto $scheme;
  35. proxy_store off;
  36. proxy_redirect off;
  37. proxy_buffering off;
  38.  
  39. }
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement