Git Product home page Git Product logo

Comments (8)

spantaleev avatar spantaleev commented on September 24, 2024

Your reverse proxy is likely not sending a Host HTTP header or is sending an unexpected value.

The request seems to be reaching Traefik, but it responding with "404 not found" is an indication that you're either not specifying a Host or you're specifying something that it doesn't recognize.

You can refeer to tour nginx example reverse-proxy configuration:

from matrix-docker-ansible-deploy.

pscriptos avatar pscriptos commented on September 24, 2024

Good evening,

Thank you very much for your feedback. So far I have limited myself to editing the two files. Do I have to carry out all other configurations directly on the matrix server or am I wrong? If so, where can I start? Because I have specified in the vars.yml that I use my own reverse proxy and I have specified an IP address. Can I change the configurations on the matrix server directly without them being undone, for example, if I make further configurations on the Ansible side?

Thank you for your feedback and have a nice weekend, Patrick

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on September 24, 2024

Alll your modifications go to inventory/hosts or inventory/matrix.DOMAIN/vars.yml.

The matrix.conf file I've linked to above is an example file that you can copy into your nginx configuration. You're not really using regular nginx though, so it doesn't really apply to you. That said, it can serve as inspiration.

I'd say there's nothing left for you to do on the Ansible side. Services should be configured correctly. You just need to fix your CloudPanel reverse-proxy server to send the appropriate Host header when sending requests to the Traefik server.

from matrix-docker-ansible-deploy.

pscriptos avatar pscriptos commented on September 24, 2024

Another question:

Shouldn't I also be able to call the Matrix Server internally? For example; http://10.0.1.110:8449.

Here I get the same error message as shown above. if I call it internally, I do not go via the ReverseProxy but directly to the server. why do I get the same error message 404 page not found?

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on September 24, 2024

Calling via the IP does not pass a Host header, so it won't work.

If you modify your hosts file (/etc/hosts on UNIX, C:\Windows\something\something\hosts on Windws) and hardcode matrix.DOMAIN to go to 10.0.1.110, you may be able to open http://matrix.DOMAIN:PORT and reach it locally.

from matrix-docker-ansible-deploy.

pscriptos avatar pscriptos commented on September 24, 2024

I have the same behaviour when I do it the way you just described:

grafik

grafik

grafik

I think there is something wrong with the configuration.
I have certainly done something wrong, but what have I done wrong? :/

from matrix-docker-ansible-deploy.

ZhenyaPav avatar ZhenyaPav commented on September 24, 2024

Having the same issue. Did you manage to fix it?

from matrix-docker-ansible-deploy.

ZhenyaPav avatar ZhenyaPav commented on September 24, 2024

I am using nginx with the config similar to what @spantaleev linked above, but when I try to connect through that reverse proxy, I get 504 Gate Time-Out. When I try to use curl, I get 404. In my case, the matrix server and the NGINx are on separate machines in a VPN. I have added '10.10.0.1' (the IP of the reverse proxy) to devture_traefik_config_entrypoint_web_forwardedHeaders_trustedIPs, and NGINx routes its requests to 10.10.0.3 (the matrix server)

EDIT: I am able to get through with curl --header 'Host: matrix.domain.tld' http://10.10.0.3:8449/_matrix/federation/v1/version, but it only works from the matrix server, not from the reverse proxy machine.

journalctl --since "now" -xfeu matrix-traefik.service does not show any logs when making a request from the proxy machine.

EDIT2: My issue was caused by the (initial) lack of proxy_set_header Host $host; in my NGINx config, and later by incorrect firewall settings (the ports were not open)

from matrix-docker-ansible-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.