Compare commits

..

20 Commits

Author SHA1 Message Date
Bortseb c4d128d0b4 chore: update image tags
continuous-integration/drone/push Build is failing
2026-06-05 17:11:55 +00:00
Bortseb 7e28140631 chore: publish 3.3.0+0.41.0-rc.0-1 release
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
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
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
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
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
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
continuous-integration/drone/push Build is failing
Make adding HTTP access easier to copy and paste.
2026-04-10 03:22:53 +00:00
Bortseb 43d86fb9b1 bumping versions
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing
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
continuous-integration/drone/push Build is failing
Reviewed-on: #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
continuous-integration/drone/push Build is failing
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
continuous-integration/drone/push Build is failing
Reviewed-on: #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
continuous-integration/drone/push Build is failing
Reviewed-on: #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
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is failing
2026-03-09 02:08:51 +00:00
Bortseb 87e01a63a9 chore: update image tags
continuous-integration/drone/push Build is failing
2026-03-07 23:25:38 +00:00
7 changed files with 56 additions and 49 deletions
+18 -13
View File
@@ -3,27 +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"
# persistent lib volume / node_modules directory, e.g. for plugmatic
#COMPOSE_FILE="$COMPOSE_FILE:compose.lib.yml"
# Note(3wc): If you change this after initial deployment, you will need to
# manually copy the new value from `conf/config.initial.json`
## 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
# Disable SSL encryption (not recommended)
#COMPOSE_FILE="$COMPOSE_FILE:compose.insecure.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"
# Customize caddyfile
#CADDY=https://foo.bar.com https://*.foo.bar.com...
## 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}"
## 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`
+1 -1
View File
@@ -1,2 +1,2 @@
export ENTRYPOINT_SH_VERSION=v2
export CONFIG_INITIAL_JSON_VERSION=v1
export CONFIG_JSON_INITIAL_VERSION=v1
+2 -3
View File
@@ -7,6 +7,5 @@ services:
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}`)"
- "traefik.http.routers.${STACK_NAME}-non-tls.entrypoints=web"
- "caddy=https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}, http://${DOMAIN}, http://*.${DOMAIN}, http://*.*.${DOMAIN}, http://*.*.*.${DOMAIN}"
- "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"
+16 -18
View File
@@ -3,16 +3,16 @@ version: "3.8"
services:
app:
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.39.2-2
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.41.0-rc.0-2
command: /bin/sh entrypoint.sh
volumes:
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
networks:
- proxy
configs:
- source: entrypoint_sh_conf
- source: entrypoint_sh
target: /home/node/entrypoint.sh
- source: config_json_initial_conf
- source: config_json_initial
target: /home/node/initial-config/config.json
secrets:
- cookie_secret
@@ -29,26 +29,24 @@ services:
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=${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=3.1.1+0.39.2-2"
# 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
- "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:
@@ -63,10 +61,10 @@ secrets:
name: ${STACK_NAME}_cookie_secret_${SECRET_COOKIE_SECRET_VERSION}
configs:
entrypoint_sh_conf:
name: ${STACK_NAME}_entrypoint_sh_conf_${ENTRYPOINT_SH_VERSION}
entrypoint_sh:
name: ${STACK_NAME}_entrypoint_sh_${ENTRYPOINT_SH_VERSION}
file: entrypoint.sh
config_json_initial_conf:
name: ${STACK_NAME}_config_initial_json_conf_${CONFIG_INITIAL_JSON_VERSION}
config_json_initial:
name: ${STACK_NAME}_config_json_initial_${CONFIG_JSON_INITIAL_VERSION}
file: config.initial.json.tmpl
template_driver: golang
+1 -1
View File
@@ -1,6 +1,6 @@
{
"farm": true,
"cookieSecret": "{{ secret "cookie_secret" }}",
"secure_cookie": true,
"security_useHttps": true,
"security_type": "friends"
}
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}