-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Multi-site hosting #132
Comments
I think that would be a great change - I always like to move towards encapsulating the data structures. This would definitely be a cowyo 3.0 change, so there could be some heavy refactoring if you see fit. I know there are places I'd like to improve still (templating, the switches in the / handler), so I'd be happy to work on this too. |
I think it'll need a configuration file to meaningfully support it. I propose the following format (with one or two wishful features like letsencrypt support):
|
@DanielHeath I think that looks great. I'm not sure how to do letsEncrypt (I have Caddy do that stuff for me), but I'm sure that there is a Go library for it |
If you're not bothered about formats I might do it with toml instead - easier on the eyes. |
Oh yeah, definitely toml is a plus. I thought maybe you preferred yaml! |
I'd like to let my friends use my server for their own wikis.
I could just run a bunch of copies of cowyo on different ports, but I'm already low on RAM.
One alternative would be to refactor cowyo to support running multiple sites alongside one another.
This would be a pretty invasive change (getting rid of all the global variables), so I'd want to be sure it's welcome before trying it.
The text was updated successfully, but these errors were encountered: