Closed PeterSommerlad closed 8 years ago
Any ideas to overcome that, but still limit the number of wikis in a farm? (I know, this is newbie stuff, but I'd like to figure things out).
An interesting question, and not newbie stuff.
Currently, in farm.coffee line 43 when a request arrives for new sub-domain a new server is started.
One way of doing this would be to check that the directory for the wiki exists, before creating the server, and return a 404 error if the directory does not exist. This would restrict wiki creation to those with file system access.
The way I do this now is a little awkward, but I've got a reverse proxy on my server listening on port 80, for virtual hosts because I have a bunch of different stuff running on the server. For wikis that I want to restrict farm creation on I only redirect sub-domains I want to them, for wikis I want any subdomain I want to be created I redirect * subdomains.
This is not the slickest, but it works well.
We have discussed a number of strategies for managing a farm but have not yet coded logic in wiki for any particular solution other than farm vs. not-farm.
I like the solution @nrn offers because it makes domain creation the responsibility of network administration.
I also like the solution we've talked about of making farm site creation dependent on a Persona login based on a specific domain. This would be good for company wikis because it pushes the administration onto the email account administration.
I consider the promiscuous approach I am currently using on fed.wiki.org a short-term solution suitable for an experimental environment. I sometimes run commands on the server that find empty wiki sites and deletes them. I use some variation of find
that suites my mood.
Hi,
I am struggling with setting up a farmed federated wiki server. If I want to limit the amount of wikis by manually creating them, the wiki server crashes, when I use an URL for which no farm element directory exists. Any ideas to overcome that, but still limit the number of wikis in a farm? (I know, this is newbie stuff, but I'd like to figure things out).