mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.86k stars 533 forks source link

API uses wrong port #1110

Closed Code-Quake closed 1 week ago

Code-Quake commented 1 week ago

Describe the issue I am using NGINX to redirect to MediaCMS using port 9443 and it mostly works well. When I upload a video and click the view media link I get an error saying that Access to XMLHttpRequest at 'https://media.example.com/api/api/v1/media/cWGH5Gb3w' from origin 'https://media.example.com/api:9443' has been blocked.

How do I get the server to use https://media.example.com:9443/api for the api url?

Environment (please complete the following information):

Code-Quake commented 1 week ago

Nevermind, I fixed it with some rewites in nginx