-
Notifications
You must be signed in to change notification settings - Fork 70
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
Handle multiple domains #43
Comments
On users, for the CMS, at present they're only used for admin, so this doesn't really come up. For more complex use-cases with custom code, that code would depend on the site. So I'm inclined to add the column but ignore it for now on the cms. |
Thank you for adding this ticket. Multi-site support is really helpful for many use cases where you have to manage lots of small sites (like for my open source projects). From what I've seen I expect Fragmenta to follow a lean approach with high performance and not too many features. I guess the simplest implementation therefore would be to add a
Images should be sharable across sites so that you don't have to upload an image multiple times. |
It's probably easier to use caddy for this ? Also I think caddy can run embedded or in a different process / server. So you can use either topology approach. https://github.com/mholt/caddy https://github.com/mholt/caddy/blob/master/README.md#features It also provides the hardening needed as well as many Operation features that are needed for running Fragmenta in production. For example rotation of the Https cert, logging and rotating. There is a fantastic file browser example that works with Caddy btw. I feel it might be very useful for Fragmenta as a file viewer for the editor aspects btw. It uses Vuejs since it needs fast feedback which I think is not how Fragmenta is designed but it makes sense to use it as a GUI widget though. The golang template just needs to load it up Anyway sorry about such a long explanation but I wanted to point out how caddy not only solves the multiple domain use case nicely but also provides some other features that Fragmenta y need at this stage in its maturity. |
Yes, maybe. Did you try it? I actually figured that using GitHub pages and a static site generator is all I need since they started to support custom domains and SSL (all free). |
The reason for adding multiple domains directly is that it's much easier to have one server running to serve multiple small domains than it is to maintain multiple CMS servers just to serve multiple domains. Running a proxy in front and lots of fragmenta servers behind is possible (and the best solution right now), but not really ideal if the sites are smaller and don't change much. |
The CMS should let you serve pages on multiple domains. At present the assumption is that each server only serves one domain.
This would require:
The text was updated successfully, but these errors were encountered: