Compare commits

...

3 Commits

Author SHA1 Message Date
3wc caa49701a9 chore: publish 2.1.1+1.0.25 release
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details
2024-05-12 14:14:45 -03:00
3wc a8fe024635 chore: publish 2.1.0+1.0.24 release
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details
2024-04-05 11:48:01 -03:00
3wc ce991f453e Add compose.insecure.yml
continuous-integration/drone/push Build is failing Details
2024-04-05 11:46:38 -03:00
3 changed files with 16 additions and 2 deletions

View File

@ -19,3 +19,6 @@ FEDWIKI_VOLUME="fedwiki"
# 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"

11
compose.insecure.yml Normal file
View File

@ -0,0 +1,11 @@
---
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}`)"
- "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}"

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: dobbs/farm:1.0.24
image: dobbs/farm:1.0.25
command: /bin/sh entrypoint.sh
volumes:
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
@ -40,7 +40,7 @@ services:
- "caddy.tls.on_demand="
- "backupbot.backup=true"
- "backupbot.backup.path=/home/node/.wiki"
- "coop-cloud.${STACK_NAME}.version=2.0.4+1.0.24"
- "coop-cloud.${STACK_NAME}.version=2.1.1+1.0.25"
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');