Open quenbyako opened 4 years ago
I found also CANONICAL_URL
env, which is, you know, looks pretty dumb, cause you can already predict canonical url from web browser already. and, also, setting custom CANONICAL_URL isn't working! script anyway tries to fetch localhost endpoint
If you know a solution around CANONICAL_URL
I'll happily accept a pull request. Setting a custom CANONICAL_URL
is working just fine, though. I tried it a minute ago with the latest beehive:latest
. Please give us a bit more information how you're exactly invoking Beehive. Feel free to replace the actual domain name with foobar.com
or something similar.
@muesli sure, i'll try to experiment, and if i found any issue on backend, i'll let you know (cuz i don't work with js, sadly)
@muesli yikes, i found pretty bad code here.
Looks like it changing html page via bytes replacer (which is SO SO BAD idea). that's why it doesn't change canonical url i think.
Also, it doesn't so necessary to include hostname in html page (but url path is pretty required), so maybe api
package needs some refactoring? i can do that in free time maybe
Can you elaborate a bit more? I'm not sure what issue you're seeing.
Soooooo strange to say it, but:
i reproduced issue #156, which said that webserver is broken (not a webserver, actualy, but web ui)
What happens:
I installed docker container on my dedicated server with my domain (
somecooldomain.com
, i don't want to show it), BUT!js code is trying to get another js script from localhost! Just, you know, forcely get, this is a part of error log:
AND! You know what?) this logged code fetching EXACTLY this endpoint (in curl to show an issue explicitly):
Docker image:
fribbledom/beehive:latest@sha256:9549cf6ffbe26f743e22fc2a43e7f516d18c077a4fc382132af8bdab9f736d97
Entry point:/bin/sh -c /go/bin/beehive -config /conf/beehive.conf