The pro account sign-up email contains an invalid sign-in link.
https://subdomain.domain.tld:0/ep/account/sign-in?uid=N&tp=PWD
I have been trying EtherPad on the default HTTP port (80). Digging a
bit, I found that the full pro sub/super domain host string generation
logic does not check for the validity of the port number:
trunk/etherpad/src/etherpad/pro/pro_utils.js:
// domain, including port if necessary
function getFullProHost() {
var h = getFullProDomain();
var parts = request.host.split(':');
if (parts.length > 1) {
h += (':' + parts[1]);
}
return h;
}
function getFullSuperdomainHost() {
if (isProDomainRequest()) {
var h = getRequestSuperdomain()
var parts = request.host.split(':');
if (parts.length > 1) {
h += (':' + parts[1]);
}
return h;
} else {
return request.host;
}
}
I have tried my luck with the Scala code, but no luck so far.
Any ideas?
Manish Jhawar
Stupid question: can you just fix your port number in your config file?
--Jeff
Using the "hidePorts" option in your properties file? (see the example
properties file...)
--Jeff
I'm guessing one of two things: either your web server setup is bogus,
or your certificate store is bogus, or both.
I have found that doing https does not work well using https only on the
front-end (in your case nginx). Things work better if I set up https in
Etherpad as well, because Etherpad seems to have an expectation in
various places that if it's giving out https URLs it should be seeing
the requests coming in on its secure port, or something along those
lines -- I haven't really worked out why this is yet. The downside is
that depending on your cert, it may mean a bit of work.
I'm behind on creating a new install guide that would cover both of
these bits of info. I was supposed to do a full soup-to-nuts install
with a friend and was going to document every bit of it; he decided he
didn't have time so I have to find resources to do it alone (meaning
setting up wildcard DNS on some other domain, etc., since I want to test
it running properly).
(This can also serve as notice to those on this list: if someone else is
interested in doing this with me, that would be great. You have to have
a place to set it up and a willingness to do exactly what I tell you to
do, and nothing more, so that the steps are accurate. Contact me
off-list if this describes you.)
Anyways, back on topic: I can help you, but I need some info. Could you
please sanitize and post your Etherpad config file, the relevant parts
of your nginx setup (if you're not sure, include more, not less), and
information about your SSL certs (are they self-signed or from some
authority that Java implicitly trusts, etc.) and whether you've added
them to Etherpad's store?
Thanks,
Jeff
Paul,
Below is my nginx config file for these sites and the include file it
references.
A few notes:
1) The places where you'd have to substitute IPs/hostnames/certs and the
like should be obvious. However, the 192.168.8.115 IP is real. I have
etherpad start on a fake local IP, then proxy to it. That way I can have
etherpad run on ports 80/443 where it seems to work best/easiest.
2) You can see in there where I have some access control for creating
new pads/sites (the site I run is publically accessible but I don't want
the public being able to do as they like with it). For some reason that
I have yet to sort out this doesn't quite work right -- the basic
authentication works, but then I get an infinite redirect. So I
currently comment that out very temporarily when a new team site or pad
is needed, then re-enable it.
Config file: http://dpaste.com/194220/
Include file: http://dpaste.com/194221/
--Jeff