Skip to content

fix(web): prevent mixed content by using relative nginx redirects#418

Merged
Movm merged 2 commits intomasterfrom
fix/mixed-content-redirect
Jan 29, 2026
Merged

fix(web): prevent mixed content by using relative nginx redirects#418
Movm merged 2 commits intomasterfrom
fix/mixed-content-redirect

Conversation

@Movm
Copy link
Copy Markdown
Collaborator

@Movm Movm commented Jan 29, 2026

Summary

  • Adds absolute_redirect off; to the nginx server block in the web Dockerfile
  • Fixes mixed content error on /imagine where nginx's directory redirect used http:// instead of relative URLs
  • The /imagine route has a real directory (apps/web/public/imagine/) containing preview images, causing nginx to issue a 301 redirect from /imagine to /imagine/ using an absolute http:// URL — which gets blocked on HTTPS

Test plan

  • Rebuild the web Docker image
  • Visit https://beta.gruenerator.de/imagine and confirm no mixed content warning in DevTools console
  • Verify the /imagine route still loads correctly (SPA fallback to index.html)

Movm added 2 commits January 29, 2026 18:50
- Gracefully handle getUserShares failures by returning empty result
- Add retry logic with cooldown to prevent infinite filter fetch loops
- Add remotion build output to gitignore
Add `absolute_redirect off` to nginx config so directory redirects
(e.g. /imagine -> /imagine/) use relative URLs instead of absolute
http:// URLs, which get blocked as mixed content on HTTPS.
@Movm Movm merged commit 4378659 into master Jan 29, 2026
6 of 7 checks passed
@Movm Movm deleted the fix/mixed-content-redirect branch March 10, 2026 16:15
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