CanastaWiki / Canasta

MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
https://www.canasta.wiki
MIT License
36 stars 27 forks source link

Canasta2.0 adding wiki farm support #295

Closed chl178 closed 1 year ago

chl178 commented 1 year ago

AddWiki Farm Support in Canasta

Related Issue: #57

Overview

One big feature Canasta lacks is the ability to support running multiple wikis, i.e. a wiki family or wiki farm, within the same container. Such wikis would be differentiated by either:

a different directory (e.g. example.com/a, example.com/b) a different subdomain (e.g. a.example.com, b.example.com) or different domains for each wiki (example1.com, example2.com).

We added wiki farm support for canasta.

New Features and Improvements

Implementation Details

  1. Common Setting: A shared configuration file provides settings that are common across all wikis.
  2. Unique IDs and settings: Each wiki has a unique ID that allows for customized settings.
  3. Auto-Generated .htaccess: The generatewikihtaccess.sh script automatically sets up .htaccess files for wikis hosted under directories, thereby managing access permissions.

Test

We deployed the Canasta2.0 on the AWS. Now it have three wikis running in one container. https://canasta2.com https://canasta2.com/a https://subdomain.canasta2.com They are all publicly accessible and everyone is welcome to test them.

chl178 commented 1 year ago

@yaronkoren @jeffw16

FelipoAntonoff commented 1 year ago

Too bad it failed the checks, it gave the error:

96 ERROR: failed to push ghcr.io/canastawiki/canasta:1.39.1-20230912-295: unexpected status from POST request to https://ghcr.io/v2/canastawiki/canasta/blobs/uploads/: 403 Forbidden

I'm looking forward to the Farm feature Thank you for focusing on this resource, I can't wait to see it on Canasta

yaronkoren commented 1 year ago

@FelipoAntonoff - that 403 error is just a strange GitHub problem, due to the fact that @chl178 does not have developer permissions on this repository. It seems like the actual code is fine, thankfully.

FelipoAntonoff commented 7 months ago

Hello, I saw that Canasta 2.0 has already been released with support for Farm Wiki, do you know of any place that has updated documentation on its use?

I looked at https://www.canasta.wiki/setup/ and didn't find anything related to Farm and its configuration.

I would like to test Canasta with Farm Wiki.

Edit: I now found details about the Farm in the Cli project: https://github.com/CanastaWiki/Canasta-CLI Maybe it would be good to be updated in the official installation documentation about

Thanks.