Private Media
To provide private media access, we have implemented a proxy_pass
configuration in media_nginx
. This setup ensures that media files under the path /media/private
are accessed only after proper validation through Nginx.
To enable this feature, simply uncomment the nginx_media
configuration:
Every time a request is made for any media under the /media/private
path, a call is made to the BOB API at http://bob-api:80/api/auth/media-validation/
.
Both the token and path are passed to determine whether the resource can be accessed by the user. You can implement your business logic for this validation in the auth_router
:
This configuration ensures that media access remains secure, with Nginx proxying requests to your API for validation. You can customize the business logic in the auth_router
to meet your specific needs.