@@ -579,19 +579,10 @@ server {
579579 server_name makemkv.domain.tld;
580580
581581 location / {
582- proxy_pass http://docker-makemkv;
583- }
584-
585- location /websockify {
586582 proxy_pass http://docker-makemkv;
587- proxy_http_version 1.1;
588- proxy_set_header Upgrade $http_upgrade ;
589- proxy_set_header Connection $connection_upgrade ;
590- proxy_read_timeout 86400;
591583 }
592584
593- # Needed when audio support is enabled.
594- location /websockify-audio {
585+ location /websockify {
595586 proxy_pass http://docker-makemkv;
596587 proxy_http_version 1.1;
597588 proxy_set_header Upgrade $http_upgrade ;
@@ -634,16 +625,8 @@ server {
634625 # Uncomment the following line if your Nginx server runs on a port that
635626 # differs from the one seen by external clients.
636627 # port_in_redirect off;
637- location /makemkv/websockify {
638- proxy_pass http://docker-makemkv/websockify;
639- proxy_http_version 1.1;
640- proxy_set_header Upgrade $http_upgrade ;
641- proxy_set_header Connection $connection_upgrade ;
642- proxy_read_timeout 86400;
643- }
644- # Needed when audio support is enabled.
645- location /makemkv/websockify-audio {
646- proxy_pass http://docker-makemkv/websockify-audio;
628+ location ~ ^/makemkv/(websockify(-.* )? ) {
629+ proxy_pass http://docker-makemkv/$1 ;
647630 proxy_http_version 1.1;
648631 proxy_set_header Upgrade $http_upgrade ;
649632 proxy_set_header Connection $connection_upgrade ;
0 commit comments