On this page: https://dispatcharr.github.io/Dispatcharr-Docs/advanced/#nginx-proxy-manager
Step 14 for NPM config the following line is both blocks and has a line break in it where the comma should be.
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type
Accept';
The line should be:
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept';
The corrected block is:
# Dispatcharr HTTPS Nginx Proxy Manager
location ~ ^(/proxy/(vod|ts)/(stream|movie|episode)/.*|/player_api\.php|/xmltv\.php|/api/channels/logos/.*/cache|/api/vod/vodlogos/.*/cache/?|/(live|movie|series)/[^/]+/.*|/[^/]+/[^/]+/[0-9]+(?:\.[^/.]+)?)$ {
allow all;
proxy_pass http://<DISPATCHARR IP ADDRESS>:9191;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept';
}
# Restrict access. In this instance all traffic to Dispatcharr flows through proxy. You can add another allow block if you want to allow traffic not through the proxy.
location / {
allow <NPM IP ADDRESS>/32;
deny all;
proxy_pass http://<DISPATCHARR IP ADDRESS>:9191;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept';
}
On this page: https://dispatcharr.github.io/Dispatcharr-Docs/advanced/#nginx-proxy-manager
Step 14 for NPM config the following line is both blocks and has a line break in it where the comma should be.
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type
Accept';
The line should be:
add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept';
The corrected block is: