Skip to content

Conversation

@iamkkronly
Copy link

The application was generating URLs that included the internal port number (e.g., :8080) when deployed on Render.com. This caused Render's Web Application Firewall (WAF) to block requests with a 403 Forbidden error.

This commit modifies the URL generation logic in FileStream/config.py to conditionally exclude the port from the URL if the FQDN indicates a Render.com deployment. This ensures that the generated download links are correctly formatted for the Render environment, resolving the WAF issue.

The application was generating URLs that included the internal port number (e.g., `:8080`) when deployed on Render.com. This caused Render's Web Application Firewall (WAF) to block requests with a 403 Forbidden error.

This commit modifies the URL generation logic in `FileStream/config.py` to conditionally exclude the port from the URL if the `FQDN` indicates a Render.com deployment. This ensures that the generated download links are correctly formatted for the Render environment, resolving the WAF issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant