Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gopher support #273

Merged
merged 4 commits into from Jul 23, 2020
Merged

Add Gopher support #273

merged 4 commits into from Jul 23, 2020

Conversation

thebaer
Copy link
Member

@thebaer thebaer commented Mar 2, 2020

This adds Gopher support to WriteFreely, thanks to @prologic's excellent go-gopher library. (This feature is tracked here: T559.)

This works on both single- and multi-user instances. It is off by default, but can be enabled with the new gopher_port config value in the [server] section -- set it to the port you want to run the gopher server on. Then you'll want to expose that port to the internet or proxy connections to it.

When Gopher support is enabled, multi-user instances will show all public blogs at gopher://[host]:[gopher_port]/ -- otherwise, blogs are accessible at gopher://[host]:[gopher_port]/[blog]/

On single-user instances, you can access the blog via gopher://[host]:[gopher_port]/ and posts via gopher://[host]:[gopher_port]/[slug]

This is just a proof of concept for now. We still need to handle some edge cases and different configurations, like private = true. But this should be a good start. This is handled.

What do you think? Any improvements you'd suggest?

This adds gopher support to WriteFreely -- both single- and multi-user
instances. It is off by default, but can be enabled with the new
`gopher_port` config value in the `[server]` section.

When enabled, multi-user instances will show all public blogs at
gopher://[host]:[gopher_port]/ -- otherwise, blogs are accessible at
gopher://[host]:[gopher_port]/[blog]/

This is just a proof of concept for now. We still need to handle some
edge cases and different configurations, like private instances.

Ref T559
@prologic
Copy link

prologic commented Mar 6, 2020

This adds Gopher support to WriteFreely, thanks to @prologic's excellent go-gopher library. (This feature is tracked here: T559.)

😲 seriously? Something I wrote is getting serious use? :) WOW!

@thebaer
Copy link
Member Author

thebaer commented Jul 23, 2020

@prologic Yep! Thanks for the great work 🙂

Merging this in now.

@thebaer thebaer merged commit 4c5f45f into develop Jul 23, 2020
@thebaer thebaer deleted the gopher branch July 23, 2020 15:48
@thebaer thebaer added this to the 0.13 milestone Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants