Compare commits

...
57 Commits
Author SHA1 Message Date
Bortseb c4d128d0b4 chore: update image tags 2026-06-05 17:11:55 +00:00
Bortseb 7e28140631 chore: publish 3.3.0+0.41.0-rc.0-1 release 2026-05-27 05:32:09 +00:00
Bortseb f066de9f84 chore: update image tags 2026-05-27 04:50:04 +00:00
Bortseb eef4018af6 chore: publish 3.2.0+0.40.1-1 release 2026-05-19 14:38:52 +00:00
Bortseb 63b204e2d2 chore: update image tags 2026-05-19 14:28:02 +00:00
Bortseb 5b0693901e chore: publish 3.1.4+0.39.4-1 release 2026-05-19 02:23:49 +00:00
Bortseb 5e84041083 Bring back health check 2026-05-19 02:22:41 +00:00
Bortseb b55198813c Update .env.sample
Make adding HTTP access easier to copy and paste.
2026-04-10 03:22:53 +00:00
Bortseb 43d86fb9b1 bumping versions 2026-04-06 16:25:37 +00:00
Bortseb 6c2dfbaf01 Merge pull request 'chore(deps): update git.coopcloud.tech/wiki-cafe/fedwiki-oci-image docker tag to v0.39.4' (#7) from renovate/git.coopcloud.tech-wiki-cafe-fedwiki-oci-image-0.x into main
Reviewed-on: coop-cloud/federatedwiki#7
2026-04-05 23:05:49 +00:00
renovate-bot d5d13b279c chore(deps): update git.coopcloud.tech/wiki-cafe/fedwiki-oci-image docker tag to v0.39.4 2026-04-05 14:59:47 +00:00
3wordchant 96b15b0621 fix: Align config name 2026-03-20 12:49:34 -04:00
3wordchant 98a9940765 Another fix to config names 2026-03-20 12:49:34 -04:00
3wordchant 52d420cbe8 Merge pull request 'chore: Configure Renovate' (#4) from renovate/configure into main
Reviewed-on: coop-cloud/federatedwiki#4
2026-03-14 03:40:39 +00:00
3wordchant 47a0416ae6 Merge pull request 'Suggesting changes to Federated Wiki recipe' (#5) from changes into main
Reviewed-on: coop-cloud/federatedwiki#5
2026-03-14 03:40:24 +00:00
Robert Best 50b68b0271 Update .env.sample 2026-03-13 11:02:47 -04:00
Robert Best 03864b4426 Suggesting changes to Federated Wiki recipe 2026-03-11 15:54:49 -04:00
renovate-bot a072efbb8e Add renovate.json 2026-03-10 17:39:48 +00:00
Bortseb 162ecf2f69 chore: publish 3.1.2+0.39.3-1 release 2026-03-09 02:08:51 +00:00
Bortseb 87e01a63a9 chore: update image tags 2026-03-07 23:25:38 +00:00
3wordchant be94f6eddb chore: publish 3.1.1+0.39.2-2 release 2026-03-06 12:58:26 -05:00
3wordchant b332264ad7 Fix config names 2026-03-06 12:58:14 -05:00
3wordchant f0f5aead93 feat: Allow overriding entire caddy label 2026-03-06 12:33:36 -05:00
Bortseb fa342cae9f chore: publish 3.1.0+0.39.2-2 release 2026-03-05 04:14:10 +00:00
Bortseb 61b043d819 chore: update image tags 2026-03-05 04:05:22 +00:00
Bortseb 252f400701 chore: publish 3.0.0+0.38.6-1 release 2025-12-12 18:01:57 +00:00
3wordchant 3dc12caac2 chore: publish 2.7.2+1.1.3 release 2025-10-17 13:22:50 -04:00
Bortseb 9c8caba4e2 chore: publish 2.7.1+1.1.2 release 2025-06-20 16:36:57 +00:00
Bortseb 2ed2c42036 chore: publish 2.7.0+1.1.1 release 2025-06-02 17:16:21 +00:00
Bortseb dba2f0f430 chore: publish 2.6.0+1.1.1 release 2025-06-02 17:05:05 +00:00
Bortseb 79cab18760 chore: publish 2.5.0+1.1.1 release 2025-05-30 16:01:05 +00:00
Bortseb 64687083e9 chore: publish 2.4.0+1.1.1 release 2025-05-23 14:13:36 +00:00
Bortseb fc242b51bb chore: publish 2.3.0+1.1.1 release 2025-05-22 04:00:51 +00:00
3wordchant 8807f46e7c chore: publish 2.2.2+1.0.29 release 2025-02-03 23:22:34 -05:00
3wordchant 19b698087e Disable healthcheck for now 2025-02-03 23:22:10 -05:00
3wordchant 58c8bba02e chore: publish 2.2.1+1.0.29 release 2025-02-03 23:21:48 -05:00
cas a304f89042 Update .drone.yml 2025-01-08 10:09:12 -08:00
3wordchant 27f81a3e81 chore: publish 2.2.0+1.0.28 release 2024-09-24 16:03:02 -04:00
3wordchant b849a3b536 Drop separate lib volume for now 2024-09-24 15:11:46 -04:00
3wordchant 2ac052366a Add support for specifying config file location 2024-09-24 15:08:10 -04:00
Bortseb 61e96089f1 chore: publish 2.1.7+1.0.28 release 2024-09-17 20:48:18 +00:00
Bortseb 6790fa45af chore: publish 2.1.6+1.0.28 release 2024-09-17 19:50:55 +00:00
3wordchant 1a1384177a chore: publish 2.1.5+1.0.27 release 2024-08-06 13:36:24 -04:00
3wordchant bec1a54581 chore: publish 2.1.4+1.0.26 release 2024-07-23 12:52:30 -04:00
3wordchant c3e117bcdf chore: publish 2.1.3+1.0.26 release 2024-07-23 12:43:06 -04:00
3wordchant 866c46f20d chore: publish 2.1.2+1.0.26 release 2024-06-11 11:27:24 -05:00
3wordchant caa49701a9 chore: publish 2.1.1+1.0.25 release 2024-05-12 14:14:45 -03:00
3wordchant a8fe024635 chore: publish 2.1.0+1.0.24 release 2024-04-05 11:48:01 -03:00
3wordchant ce991f453e Add compose.insecure.yml 2024-04-05 11:46:38 -03:00
3wordchant b302384ad0 chore: publish 2.0.4+1.0.24 release 2024-04-05 11:28:58 -03:00
3wordchant 5d55c3e70d chore: publish 2.0.3+1.0.22 release 2024-02-27 14:26:07 -03:00
3wordchant 53ab8dbf39 chore: publish 2.0.2+1.0.21 release 2023-11-22 17:15:54 +00:00
3wordchant a7bda15182 chore: publish 2.0.1+1.0.20 release 2023-10-09 11:08:21 +01:00
3wordchant d080b8c09b Fix healthcheck 2023-10-09 11:08:01 +01:00
3wordchant a93358bd68 chore: publish 2.0.0+1.0.20 release 2023-10-09 10:46:55 +01:00
3wordchant 3a0d30da6a Tidy up, add healthcheck 2023-10-08 16:57:08 +01:00
3wordchant 2da198b21b chore: publish 1.0.2+1.0.19 release 2023-10-05 22:51:28 +01:00
20 changed files with 112 additions and 123 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag
+19 -11
View File
@@ -3,24 +3,32 @@ TYPE=federatedwiki
DOMAIN=federatedwiki.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.federatedwiki.example.com`'
LETS_ENCRYPT_ENV=production
COMPOSE_FILE="compose.yml"
# Change to an absolute path to use a bind-mount, e.g. /opt/fedwiki
## where the wiki data lives; change to an absolute path if you want a bindmount (e.g. /opt/fedwiki)
FEDWIKI_VOLUME="fedwiki"
# custom wiki.cafe image, for working oauth2 support
#COMPOSE_FILE="$COMPOSE_FILE:compose.wikicafe.yml"
## Persist the lib volume / node_modules directory. If you're not using plugmatic, you can disable this option.
COMPOSE_FILE="$COMPOSE_FILE:compose.lib.yml"
# Predefined "owner" security
#COMPOSE_FILE="$COMPOSE_FILE:compose.owner.yml"
## Note(3wc): If you change this after initial deployment, you will need to
## manually copy the new value from `conf/config.initial.json`
SECRET_COOKIE_SECRET_VERSION=v1 # length=30
# persistent lib volume / node_modules directory, e.g. for plugmatic
#COMPOSE_FILE="$COMPOSE_FILE:compose.lib.yml"
## Specify wiki config filename. If running multiple farms on the same machine with unique configurations, each config needs a unique filename.
## e.g. config-farm1.json, config-farm2.json, etc.
## If there exists a config file named "config.json", it will be used by all farms by default.
CONFIG_FILE="config.json"
COOKIE_SECRET="asflkjqpweoriuwpeogdjgbpdofigh"
AUTHOR="Baja Colorado"
ADMIN_KEY="<paste from a .wiki/DOMAIN/status/owner.json file>"
## If using Caddy:
## Customize your Caddyfile to determine what domains are accessible and will get TLS certificates.
## You are also able to enable access over HTTP by adding domains like: http://${DOMAIN}, http://*.${DOMAIN}, http://*.*.${DOMAIN}, http://*.*.*.${DOMAIN}
CADDY="https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}"
FEDWIKI_IS_PRIVATE=0
## If using Traefik:
## By default traefik allows: https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}
## Uncomment the following line to also allow HTTP access
#COMPOSE_FILE="$COMPOSE_FILE:compose.insecure.yml"
+12 -13
View File
@@ -1,26 +1,25 @@
# Federated Wiki
Share pages circulating within a creative commons
Share pages circulating within a creative commons.
See [Federated Wiki on GitHub](https://github.com/fedwiki/wiki) for more information.
<!-- metadata -->
* **Maintainer**: [@3wordchant](https://git.coopcloud.tech/3wordchant), [@Bortseb](https://git.coopcloud.tech/Bortseb), [@cgalo5758](https://git.coopcloud.tech/cgalo5758)
* **Status**: `stable`
* **Category**: Apps
* **Status**: 0, work-in-progress
* **Image**: [`dobbs/farm`](https://hub.docker.com/r/dobbs/farm/), 4, upstream
* **Image**: [`wiki-cafe/fedwiki-oci-image`](https://git.coopcloud.tech/wiki-cafe/-/packages/container/fedwiki-oci-image/), 4, upstream
* **Healthcheck**: No
* **Backups**: No
* **Email**: No
* **Email**: N/A
* **Tests**: No
* **SSO**: No
* **SSO**: ? (Keycloak)
<!-- endmetadata -->
## Basic usage
1. Set up Docker Swarm and [`abra`]
2. Deploy [`coop-cloud/traefik`]
3. `abra app new federatedwiki`
4. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
1. Set up [Docker Swarm](https://docs.coopcloud.tech/operators/tutorial/#server-configuration) and [`abra`](https://docs.coopcloud.tech/abra/)
2. `abra app new federatedwiki -S` - Copy the secret it generates, you will need it for your wiki config file.
3. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app deploy YOURAPPDOMAIN`
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
4. `abra app deploy YOURAPPDOMAIN`
+2 -23
View File
@@ -1,23 +1,2 @@
export INSTALL_SH_VERSION=v9
export CONFIG_JSON_VERSION=v7
export CONFIG_OWNER_JSON_VERSION=v4
abra_backup_app() {
_abra_backup_dir "app:/home/node/.wiki"
}
abra_restore_app() {
# shellcheck disable=SC2034
{
abra__src_="-"
abra__dst_="app:/home/node/.wiki"
}
zcat "$@" | sub_app_cp
success "Restored 'app'"
}
abra_backup() {
abra_backup_app
}
export ENTRYPOINT_SH_VERSION=v2
export CONFIG_JSON_INITIAL_VERSION=v1
+11
View File
@@ -0,0 +1,11 @@
---
# NOTE: Do not use this in combination with the CADDY option in compose.yml
version: "3.8"
services:
app:
deploy:
labels:
- "traefik.http.services.${STACK_NAME}-non-tls.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}-non-tls.rule=Host(`${DOMAIN}`) || HostRegexp(`{subdomain:\\w+}.${DOMAIN}`) || HostRegexp(`{subsubdomain:\\w+}.{subdomain:\\w+}.${DOMAIN}`) || HostRegexp(`{subsubsubdomain:\\w+}.{subsubdomain:\\w+}.{subdomain:\\w+}.${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}-non-tls.entrypoints=web"
-15
View File
@@ -1,15 +0,0 @@
---
version: "3.8"
services:
app:
configs:
- source: config_owner_json_conf
target: /home/node/config/config.owner.json
configs:
config_owner_json_conf:
name: ${STACK_NAME}_config_owner_json_${CONFIG_OWNER_JSON_VERSION}
file: config.owner.json.tmpl
template_driver: golang
-6
View File
@@ -1,6 +0,0 @@
---
version: "3.8"
services:
app:
image: git.coopcloud.tech/wiki-cafe/wiki-farm:latest
+30 -23
View File
@@ -3,61 +3,68 @@ version: "3.8"
services:
app:
image: dobbs/farm:1.0.18
command: /bin/sh config/install.sh
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.41.0-rc.0-2
command: /bin/sh entrypoint.sh
volumes:
- "fedwiki_friends:/home/node/config"
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
networks:
- proxy
configs:
- source: install_sh_conf
target: /home/node/config/install.sh
- source: config_json_conf
target: /home/node/config/config.json
- source: entrypoint_sh
target: /home/node/entrypoint.sh
- source: config_json_initial
target: /home/node/initial-config/config.json
secrets:
- cookie_secret
environment:
- DOMAIN
- COOKIE_SECRET
- AUTHOR
- ADMIN_KEY
deploy:
update_config:
order: start-first
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`) || HostRegexp(`{subdomain:\\w+}.${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`) || HostRegexp(`{subdomain:\\w+}.${DOMAIN}`) || HostRegexp(`{subsubdomain:\\w+}.{subdomain:\\w+}.${DOMAIN}`) || HostRegexp(`{subsubsubdomain:\\w+}.{subsubdomain:\\w+}.{subdomain:\\w+}.${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].main=${DOMAIN}"
- "traefik.http.routers.${STACK_NAME}.tls.domains[0].sans=*.${DOMAIN}"
- "traefik.http.routers.${STACK_NAME}.priority=1"
- "caddy=https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}"
- "caddy=${CADDY}"
- "caddy.reverse_proxy={{upstreams 3000}}"
- "caddy.tls.on_demand="
- "backupbot.backup=true"
- "backupbot.backup.path=/home/node/.wiki"
- "coop-cloud.${STACK_NAME}.version=1.0.1+1.0.18"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
- "coop-cloud.${STACK_NAME}.version=3.3.0+0.41.0-rc.0-1"
healthcheck:
test: "node -e 'var http = require(\"http\"); var options = { host : \"localhost\", port : \"3000\", timeout : 2000, path : \"/view/welcome-visitors\", headers: { \"Host\": \"${DOMAIN}\" } }; var request = http.request(options, (res) => { console.log(`STATUS: $${res.statusCode}`); if (res.statusCode == 200) { process.exit(0); } else { process.exit(1); } }); request.on(\"error\", function(err) { console.log('ERROR'); process.exit(1); }); request.end();'"
interval: 10s
timeout: 2s
retries: 2
start_period: 30s
volumes:
fedwiki:
fedwiki_friends:
networks:
proxy:
external: true
secrets:
cookie_secret:
external: true
name: ${STACK_NAME}_cookie_secret_${SECRET_COOKIE_SECRET_VERSION}
configs:
install_sh_conf:
name: ${STACK_NAME}_install_sh_${INSTALL_SH_VERSION}
file: install.sh
config_json_conf:
name: ${STACK_NAME}_config_json_${CONFIG_JSON_VERSION}
file: config.json.tmpl
entrypoint_sh:
name: ${STACK_NAME}_entrypoint_sh_${ENTRYPOINT_SH_VERSION}
file: entrypoint.sh
config_json_initial:
name: ${STACK_NAME}_config_json_initial_${CONFIG_JSON_INITIAL_VERSION}
file: config.initial.json.tmpl
template_driver: golang
+6
View File
@@ -0,0 +1,6 @@
{
"farm": true,
"cookieSecret": "{{ secret "cookie_secret" }}",
"security_useHttps": true,
"security_type": "friends"
}
-14
View File
@@ -1,14 +0,0 @@
{
"admin": "{{ env "ADMIN_KEY" }}",
"farm": true,
"cookieSecret": "{{ env "COOKIE_SECRET" }}",
"secure_cookie": true,
"security_type": "friends"
{{ if eq (env "FEDWIKI_IS_PRIVATE") "1" }},
"wikiDomains": {
"$DOMAIN": {
"id": "/home/node/.wiki/config.owner.json"
}
}
{{ end }}
}
-6
View File
@@ -1,6 +0,0 @@
{
"name": "{{ env "AUTHOR" }}",
"friend": {
"secret": "{{ env "PASSWORD" }}"
}
}
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
config_file="$HOME/.wiki/${CONFIG_FILE:-config.json}"
if [ ! -f "$config_file" ]; then
cp initial-config/config.json "$config_file"
fi
wiki --farm --config "$config_file"
-11
View File
@@ -1,11 +0,0 @@
#!/bin/sh
if [ ! -f .wiki/config.json ]; then
cp config/config.json .wiki/config.json
fi
if [ ! -f .wiki/config.owner.json ]; then
cp config/config.owner.json .wiki/config.owner.json
fi
wiki --farm
+11
View File
@@ -0,0 +1,11 @@
COOKIE_SECRET is now a Docker secret, and several config options have been
dropped from the recipe -- this shouldn't affect running deplyoments, as
the recipe currently just installs the generated `config.json` if there isn't
one already -- but you will likely still need to run
`abra app secret generate ...` before deploying, in preparation for moving to
ennvironment variables for config in a future release.
Additionally, there is now a healthcheck, which may require tuning, especially
on slower systems; please open a ticket on [the issue
tracker](https://git.coopcloud.tech/coop-cloud/federatedwiki/issues) if you
notice problems with the containers starting up.
+1
View File
@@ -0,0 +1 @@
y
+1
View File
@@ -0,0 +1 @@
decaffeinated
+1
View File
@@ -0,0 +1 @@
decaffeinate
+1
View File
@@ -0,0 +1 @@
decaffeinate
+1
View File
@@ -0,0 +1 @@
decaffeinated
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}