ardek66 / geminim

Gemini server made in Nim
BSD 2-Clause "Simplified" License
34 stars 8 forks source link

Redirect after Titan request, generate directories #5

Closed stellarskylark closed 2 years ago

stellarskylark commented 2 years ago

Hi again!

I realized that the code I submitted last time couldn't generate directories if someone wanted to write to, say, example.com/posts/test.gmi but the posts/ directory didn't exist yet. I've added code to fix that!

I also added a config flag that causes GemiNim to redirect the client to the uploaded resource after a successful Titan request.

I'd also like to write some code to allow configuration of user-specific titanPasswords, that'll be in another PR later!

ardek66 commented 2 years ago

I'd also like to write some code to allow configuration of user-specific titanPasswords, that'll be in another PR later!

I was thinking of (finally) merging the client-side certificate authentification support the following days. This would allow for Titan password(s) to be replaced with certificate authentification, which would be safer and more flexible(i.e for a wiki you could allow clients with trusted certificates to edit certain pages).

stellarskylark commented 2 years ago

I was thinking of (finally) merging the client-side certificate authentification support the following days. This would allow for Titan password(s) to be replaced with certificate authentification, which would be safer and more flexible(i.e for a wiki you could allow clients with trusted certificates to edit certain pages).

That sounds like a really good idea, yeah! I'll wait for you to do that then before I muck around with the passwords any more.

stellarskylark commented 2 years ago

You pushed the compiled binary by mistake

whoops fixed