YunoHost-Apps / gemserv_ynh

A gemini server written in rust.
MIT License
10 stars 2 forks source link

ERROR: invalid url: RelativeUrlWithoutBase #26

Open xplosionmind opened 1 year ago

xplosionmind commented 1 year ago

Describe the bug

When visiting my capsule, the browser gives the error: invalid url: RelativeUrlWithoutBase

Screenshot from 2023-05-06 20-05-14

Context

Steps to reproduce

Expected behavior

The Gemini website should be loaded normally

Config files

/etc/gemserv/config.d/tommi.space.d:

[[server]]
hostname = "tommi.space"
dir = "/opt/yunohost/gemserv/tommi.space"
key = "/etc/yunohost/certs/tommi.space/key.pem"
cert = "/etc/yunohost/certs/tommi.space/crt.pem"
lang = "en"
redirect = { "/" = "/index.gmi" }

/etc/gemserv/config.toml:

# interface accepts multiple interface/port combinations. However, due to the
# dual stack nature of linux if you specify "[::]:1965" linux will also listen
# on "0.0.0.0:1965" so if you manually specify both it will fail.
# interface = [ "0.0.0.0:1965, "[::]:1965" ]
interface = [ "[::]:1965" ]
# port and host have been deprecated in favor of interface but will still work
# for now.
# port = 1965
# host = "::"
# log is optional and server wide. It defaults to info if not set. Other levels
# are error, warn, and info. If error is set it will only show error. If warn
# is set it will show error and warn. Info shows all three.
log = "info"

[[server]]
hostname = "tommi.space"
dir = "/opt/yunohost/gemserv/tommi.space"
key = "/etc/yunohost/certs/tommi.space/key.pem"
cert = "/etc/yunohost/certs/tommi.space/crt.pem"
lang = "en"
redirect = { "/" = "/index.gmi" }
xplosionmind commented 1 year ago

Hi @yalh76, I am sorry to tag you, but I would really need some help to troubleshoot this issue… I am available for testing!

Thanks a lot in advance ❤️