Hey,
so when I try to access SOGo through my public IP, it works like a charm and I can log into any account. But when I put mailcow behind nginx reverse proxy and try to log in, I get “Unhandled error response” and the console says “Uncaught ReferenceError: CKEDITOR is not defined in custom-sogo.js?lm=1662209580:4:1”. The same error appears when I go to the SOGo access page. I would appreciate any help in fixing this issue, thanks in advance.
English
SOGo JS error behind nginx reverse proxy
Had a similar issue. SOGO wouldn’t log in when behind reverse proxy and gave “unhandled error” on login page.
Have something to say?
Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!
Okay were you able to fix the whole thing?
- Edited
Coniass I just abandoned using the reverse proxy. The error was inconsistent. I could change the proxy port and restart the containers and it would work for a while but then would stop working a few minutes after I logged in.
I should note that I’m using the non-production-ready builds because I want that sweet dark mode. Not sure if the issue exists in production ready builds.
aaronsmith Those are the EXACT same instructions that I used when setting this up. The only difference being that my nginx reverse proxy was in its own docker container. The reverse proxy was working for the most part, there was just the inconsistent issue trying to log in at mail.domain.tld/SOGo. Upon submitting the username and password the green part of the UI turns orange and text “unhandled error” apears where it would normally say “Welcome Firstname Lastname”
Might be worth checking the container’s logs to see if there’s any helpful clues on the issue?
Given we’re talking about SOGo, you might also want to tap into that community for some guidance, since Mailcow is using it.
Let us know if you sort this out, or if you find any interesting log messages to share here for review.
Hey randommouse, how did you fix this Problem? I also have this problem now, i use nginx proxy manager.