Git Product home page Git Product logo

Comments (8)

sushruth avatar sushruth commented on June 22, 2024

EDIT

Making these changes manually did not work. Maybe I am missing something. I get a 500 error.

EDIT

I have to note that if you are using jwilder/nginx-proxy, the documentation says:

If you would like to connect to your backend using HTTPS instead of HTTP, set VIRTUAL_PROTO=https on the backend container.

In which case specifying it in docker-compose.yml should help in some way. I will verify and update here if I get through.


Was having this EXACT issue myself. Thanks a lot for solving it.

Is there any temporary workaround? (like making those changes in the PR, myself in nginx.conf inside mattermost container?)

from mattermost-docker.

jdoubleu avatar jdoubleu commented on June 22, 2024

In which case specifying it in docker-compose.yml should help in some way. I will verify and update here if I get through.

Actually this is for the backend. If your backend proxy support https the reveres proxy can cnnect via https to it. This will then pass the correct Protocol in the HTTP headers but you have to configure https for mattermost too.

You can simply drop the web container and pass every request to the app container of the mattermost setup like I did. This is just another proxy to the mattermost app itself.

from mattermost-docker.

sushruth avatar sushruth commented on June 22, 2024

@jdoubleu Thanks! But here is the thing, I want to use the nginx reverse proxy container to manage my subdomains. I am using same SSL certificates for both mattermost container and the proxy container.

Another observation is that I can access mattermost fine without https, which is the main issue. I can access it using HTTPS (using the IP and not the server name, tested using curl -k) from inside the mattermost container itself, also from the nginx proxy container and also from the host operating system. But anything outside that like any other device from within the same physical network, fails in error 500.

Not sure if any of this information makes sense, But I will post any results I get here just in case anyone may be interested.

from mattermost-docker.

xcompass avatar xcompass commented on June 22, 2024

@sushruth have you resolved this issue? Do you still need any help?

from mattermost-docker.

sushruth avatar sushruth commented on June 22, 2024

@xcompass I have gone ahead with not using Mattermost at all. Thank you.

from mattermost-docker.

jdoubleu avatar jdoubleu commented on June 22, 2024

Sorry for the delay!

But here is the thing, I want to use the nginx reverse proxy container to manage my subdomains. I am using same SSL certificates for both mattermost container and the proxy container.

[..] But anything outside that like any other device from within the same physical network, fails in error 500.

I don't think this has to do with this fix. This is more a problem with your overall configuration and how you setup your containers, etc.

Like described in the linked PR, my issue only resolved the bug where Mattermost internally detects the wrong URL if it was accessed via http from the reverse proxy no matter how the frontend was configured.

EDIT: Is it possible that @alecisec 's post was deleted?

from mattermost-docker.

xcompass avatar xcompass commented on June 22, 2024

@jdoubleu which post?
OK. I'll close this issue for now. Will open if there is any issue.

from mattermost-docker.

xcompass avatar xcompass commented on June 22, 2024

@jdoubleu found the post. It seem he/she moved the post into a new issue.

from mattermost-docker.

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.