EverythingSuckz / TG-FileStreamBot

A telegram bot that will give instant stream links for telegram files without the need of waiting till the download completes.
GNU Affero General Public License v3.0
1.31k stars 1.29k forks source link

golang: IP and port are configured but links are different #124

Closed EverythingSuckz closed 11 months ago

EverythingSuckz commented 11 months ago

I found a new problem, the configuration in fsb.env is not taking effect. I customized the ip and port and the program starts with "Server started {"port": 9527}", but the link given is still http://localhost:8080/*.

Originally posted by @holll in https://github.com/EverythingSuckz/TG-FileStreamBot/issues/122#issuecomment-1837476518

EverythingSuckz commented 11 months ago

@holll You need to add HOST variable in your env file and that will be formatted in your links

add

HOST=http://yourIP:port

in your fsb.env file

See fsb.sample.env for more info

holll commented 11 months ago

Yes, I deleted this reply because my previous configuration had some errors.

holll commented 11 months ago

But I think it would be better not to add an additional port number to HOST when PORT is filled in?

holll commented 11 months ago

Please ignore my question, maybe I haven’t considered it comprehensively enough.

EverythingSuckz commented 11 months ago

But I think it would be better not to add an additional port number to HOST when PORT is filled in?

You are right but I've given the user total choice to use any domain they want. If you want to set up a domain, it'll be way easier to just change the HOST rather than changing too many unnecessary configs like in the case of the python branch.

EverythingSuckz commented 11 months ago

@holll Please close this issue if your problem is resolved.

holll commented 11 months ago

My problem has been solved, but this issue was not created by me and I cannot close it.