Advertisement
Guest User

Untitled

a guest
Apr 8th, 2022
3,245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. daemon off;
  2. worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;
  3. events {
  4. use epoll;
  5. accept_mutex on;
  6. worker_connections <%= ENV['NGINX_WORKER_CONNECTIONS'] || 1024 %>;
  7. }
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12. proxy_ssl_server_name on;
  13. sendfile on;
  14. gzip on;
  15.  
  16.  
  17. # Must read the body in 5 seconds.
  18. client_body_timeout <%= ENV['NGINX_CLIENT_BODY_TIMEOUT'] || 5 %>;
  19.  
  20. server {
  21. listen <%= ENV["PORT"] %>;
  22.  
  23. #Redirects
  24. proxy_redirect https://1337x.to http://$host;
  25. proxy_redirect http://1337x.to http://$host;
  26.  
  27. port_in_redirect off;
  28.  
  29. #Root URI
  30. location / {
  31. proxy_pass https://1337x.to;
  32. proxy_set_header Host 1337x.to;
  33. proxy_set_header Referer 'https://1337x.to';
  34. proxy_set_header Accept-Encoding "";
  35. proxy_set_header CF-Connecting-IP "";
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement