Advertisement
nrgbistro

handbrake.subdomain.conf

Mar 10th, 2020
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. map $http_upgrade $connection_upgrade {
  2. default upgrade;
  3. '' close;
  4. }
  5. server {
  6. listen 443 ssl;
  7. listen [::]:443 ssl;
  8.  
  9. server_name handbrake.*;
  10.  
  11. include /config/nginx/ssl.conf;
  12.  
  13. client_max_body_size 0;
  14.  
  15. location / {
  16. include /config/nginx/proxy.conf;
  17. resolver 127.0.0.11 valid=30s;
  18. set $upstream_app handbrake;
  19. set $upstream_port 5800;
  20. set $upstream_proto http;
  21. proxy_pass $upstream_proto://$upstream_app:5800;
  22. #proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection $connection_upgrade;
  25. proxy_set_header Host $host;
  26. }
  27.  
  28. location /websockify {
  29. proxy_pass http://handbrake;
  30. proxy_set_header Upgrade $http_upgrade;
  31. proxy_set_header Connection $connection_upgrade;
  32. proxy_read_timeout 86400;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement