-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
empty domain in generated token send via email #11
Comments
I too run behind a SSL terminating proxy. (nginx) Give that a try? |
Oh very interesting. When is use
It seems the wrong line is uncommented. The state of the config.inc.local.php in my container is:
So we seem to have some problem in the config patching. Nevertheless, when i correct this manually to
I need a possibility to modify this from the outer world. I see 2 problems here:
PS: |
#2 found the culprit due to some earlier changes. I've put a quick fix in place with the new tag of 3.0.1 but will clean this up further in coming days, relying on a line number is bound to cause problems again in future. |
Proper fix complete - reissuing tag 3.0.1 |
You are faster with fixing, than my gathering my logs and updating my comment^^ So those two problems remains:
|
First coffee of the day and before my inbox goes mad usually gets me going pretty quickly :) For 2 - I don't believe we can solve it without a bunch of hacking to the container. On the web proxy, setting up an alias and then forwarding it to the container would certainly work, but we will run into the password tool issuing a bad url when sending the token by mail. Again, we can hack away at it - and I believe it would be a matter of adding an environment variable (and hacking at the source) to override the URL. I can do that, it may take a bit longer as I'm juggling a large team project right now, and more than likely would be submit it upstream to the ltb-selfservice-password project instead of keeping it unique to just this image. Let me think about it further. |
I've been thinking about this today and coming up against this in a few other images that I haven't released. I will push a new image tomorrow for you with a potential fix. |
Thank you for your great support. |
@tiredofit I tried the new version of latest and am still seeing an empty url. Is this something I can simply hardcode for the time being? Digest: sha256:ce06e1e9ee8b09f3d669b9ca9ef5ad287047739e3c2bd3bbbf23a3f02c671f1e Example Problem: |
@aderbique I am not seeing it on my end but others are so somethings a bit off. |
Wow that's a fast response. So I actually got it working. After digging around, looks like you just need to uncomment line 212 of install/assets/ssp/config.inc.php.template
Then set environment variables |
@tiredofit Adding a server name did not seem to change anything. Also, I should probably edit my last comment. For some reason, the HTTP_HOST part is being filled out, but HTTP_X_FORWARDED_PROTO is still blank.
|
Thanks for that. What about if you didn't change the config.inc.php.template at all and used the env var |
I am using Take a look at my previous message about |
OK. Sorry - didn't see that you were already using it. Whats the reverse proxy you are using? I'm going to reach out to my developers and see if they've made any changes to the source code which is why I'm not seeing it. |
Currently not using one. But from what I read, it appears that if I set In the future, I plan to use Traefik to handle reverse proxy pass. Also, thanks for the help! |
Hmm, now I am questioning my own image here. I just took a peek at the source, it's not modified to hardcode the url anywhere, however what I did find that is interesting is in my config.inc.php that the reset_url variable was still commented out yet it's working providing me the url I was visiting to get the token as well as using the correct protocol. I'm going to have to wait until the middle of the night to take down this service and examine it further as I still have a boat load of users online. Good choice on the traefik, that is my eventual plan as well, I just need to find some time to alter my cloudflare companion container that auto provisions CNAMEs to work under traefik and we'll make the switch. |
Is there any insight to this topic in the meantime? |
Still nothing, I've been swamped with work. My original thought is that it was related to nginx configuration to which I was going to dynamically add |
The kopano stack developer did implement an approach to init config.php values based on environment variables passed into the container. |
Hi, having a similar issue (did it get to work). I want that the generated URL does contain a folder, i.e. "https://my.host.name/resetpw/". I've configured a reverse proxy to redirect the requests correctly and can fill the form. However the url inside the reset mail is malformed. Why not just let the administrator set the URL inside a variable? |
@tiredofit Curious if you have had time to delve deeper into this issue? Thanks! |
The token, which is send via email looks as follows:
http:///index.php?action=resetbytoken&token=3vUCAGq...
As you can see, the FQDN is missing. I am running the service behind an ssl-terminating reverse proxy with the following config:
https://github.com/zokradonh/kopano-docker/blob/a630007059cf4c0ec52dc1d713bd8d52f172bde2/docker-compose.yml-example#L53-L88
even when i add
No the crafted link inside the email does not contain any domain. I already have checked, that FQDN is properly set.
What do i missing here?
The text was updated successfully, but these errors were encountered: