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

Canasta2.0 adding wiki farm support #295

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

chl178
Copy link
Contributor

@chl178 chl178 commented Sep 12, 2023

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

  • Wiki Farm Support: The updated implementation allows multiple wikis to run independently within a single container.
  • Enhanced CLI: Canasta's command-line interface is now extended to manage wiki farm configurations effortlessly.

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.

Canasta2.0 adding wiki farm support
@chl178
Copy link
Contributor Author

chl178 commented Sep 12, 2023

@yaronkoren @jeffw16

@jeffw16 jeffw16 changed the base branch from master to release/2.0-rc September 22, 2023 18:10
@FelipoAntonoff
Copy link

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 yaronkoren merged commit bf3a6f5 into CanastaWiki:release/2.0-rc Sep 29, 2023
1 of 2 checks passed
@yaronkoren
Copy link
Member

@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
Copy link

FelipoAntonoff commented Feb 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants