Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed Content Error (HTTP/HTTPS) when serving over Vitodeploy HTTPS #427

Open
RichardAnderson opened this issue Jan 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@RichardAnderson
Copy link

Describe the bug
A single JavaScript file is being served over HTTP, which is blocked by Chrome when loading Vitodeploy over HTTPS. This stops log viewing, log download, .env file edits, vhost file edits and deployment scripts from being viewed/modified, essentially making the service unusable.

To Reproduce
Steps to reproduce the behavior:

  1. Install Vitodeploy via the Docker Image (@latest)
  2. Enable HTTPS, through a reverse nginx proxy
  3. Log into Vitodeploy using the configured username/password
  4. app-58d76f18.js is served over HTTP and therefore blocked as mixed content, error displayed as below:

Mixed Content: The page at 'https://vitodeploy.[DOMAIN_REDACTED]/servers/1/sites/2' was loaded over HTTPS, but requested an insecure script 'http://vitodeploy.[DOMAIN_REDACTED]/build/assets/app-58d76f18.js'. This request has been blocked; the content must be served over HTTPS.

Expected behavior
All content, CSS and JavaScript is served over HTTPS and therefore not blocked.

Screenshots
image
image
image

Additional context
N/A

@RichardAnderson RichardAnderson added the bug Something isn't working label Jan 12, 2025
@RichardAnderson
Copy link
Author

Okay, managed to resolve the problem with additional configuration. Maybe the documentation should be updated?

APP_URL=https://[DOMAIN_REDACTED]/
ASSET_URL=https://[DOMAIN_REDACTED]/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant