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

TusUpload and mixed content call #3760

Closed
atomotic opened this issue Jul 22, 2024 · 1 comment
Closed

TusUpload and mixed content call #3760

atomotic opened this issue Jul 22, 2024 · 1 comment

Comments

@atomotic
Copy link

atomotic commented Jul 22, 2024

I have deployed a Manifold instance (using manifold-docker-build with v8.1.2-beta.1)

I got this error on texts/ingestions/new:

TusUpload.js:107 Mixed Content: The page at 'https://{my_domain}/backend/projects/1effd04d-b995-40c6-ae4c-0a7f1d446fd8/texts/ingestions/new' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://{my_domain}/api/files/80153821c49a4852b7796dab113876d4'. This request has been blocked; the content must be served over HTTPS.

the ENV SSL_ENABLED=true is present

[manifold@leto manifold]$ docker compose exec client /bin/bash
root@d1ed3c9ba3aa:/opt/manifold/client# cat /opt/manifold/client/dist/manifold/www/browser.config.js
if (!window.process) window.process = {};
if (!window.process.env) window.process.env = {};
process.env.NODE_ENV = "production";
process.env.DOMAIN = "{my_domain}"
process.env.CLIENT_BROWSER_API_URL = "https://{my_domain}"
process.env.CLIENT_BROWSER_API_CABLE_URL = "https://{my_domain}/cable"
process.env.SSL_ENABLED = "1"
process.version = "v16.16.0"

But I think is not reaching this point https://github.com/ManifoldScholar/manifold/blob/master/client/src/global/components/form/TusUpload.js#L95

What should I investigate?

@atomotic
Copy link
Author

To add some more context to this help request: the compose stack is starting correctly, all containers are running.

The manifold-nginx is listening on :4000, the host server has another nginx proxying everything to it.

This is the content of environment/manifold.env (the installation domain is visible here)

DOMAIN=leto.verser.info

#CLIENT_BROWSER_API_URL=https://leto.verser.info
#CLIENT_BROWSER_API_CABLE_URL=https://leto.verser.info/cable

SSL_ENABLED=true

API_PORT=3020
API_SOCKET=/manifold_sockets/manifold-api
API_CABLE_SOCKET=/manifold_sockets/manifold-cable

CLIENT_SERVER_SOCKET=/manifold_sockets/manifold-client
#CLIENT_SERVER_API_URL=http://api_rails:3020
NODE_ENV=production

ELASTICSEARCH_URL=http://elasticsearch:9200

CLIENT_SERVER_PROXIES=true
RAILS_ENV=production
RAILS_SECRET_KEY=xxxxxxxxxxxx
RAILS_DB_USER=postgres
RAILS_DB_PASS=
RAILS_DB_HOST=postgres
RAILS_DB_PORT=5432
RAILS_DB_NAME=manifold_production
RAILS_REDIS_URL=redis://redis:6379

Can you help me understand why the file upload js makes a plain http call?

@atomotic atomotic closed this as completed Sep 9, 2024
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

No branches or pull requests

1 participant