Compare commits
23 Commits
2.0.2+1.0.
...
2.7.0+1.1.
Author | SHA1 | Date | |
---|---|---|---|
2ed2c42036 | |||
dba2f0f430 | |||
79cab18760 | |||
64687083e9 | |||
fc242b51bb | |||
8807f46e7c | |||
19b698087e | |||
58c8bba02e | |||
a304f89042 | |||
27f81a3e81 | |||
b849a3b536 | |||
2ac052366a | |||
61e96089f1 | |||
6790fa45af | |||
1a1384177a | |||
bec1a54581 | |||
c3e117bcdf | |||
866c46f20d | |||
caa49701a9 | |||
a8fe024635 | |||
ce991f453e | |||
b302384ad0 | |||
5d55c3e70d |
@ -35,7 +35,7 @@ steps:
|
|||||||
from_secret: drone_abra-bot_token
|
from_secret: drone_abra-bot_token
|
||||||
fork: true
|
fork: true
|
||||||
repositories:
|
repositories:
|
||||||
- coop-cloud/auto-recipes-catalogue-json
|
- toolshed/auto-recipes-catalogue-json
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -19,3 +19,8 @@ FEDWIKI_VOLUME="fedwiki"
|
|||||||
# Note(3wc): If you change this after initial deployment, you will need to
|
# Note(3wc): If you change this after initial deployment, you will need to
|
||||||
# manually copy the new value from `conf/config.initial.json`
|
# manually copy the new value from `conf/config.initial.json`
|
||||||
SECRET_COOKIE_SECRET_VERSION=v1 # length=30
|
SECRET_COOKIE_SECRET_VERSION=v1 # length=30
|
||||||
|
|
||||||
|
# Disable SSL encryption (not recommended)
|
||||||
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.insecure.yml"
|
||||||
|
|
||||||
|
CONFIG_FILE="config.json"
|
||||||
|
2
abra.sh
2
abra.sh
@ -1,2 +1,2 @@
|
|||||||
export ENTRYPOINT_SH_VERSION=v1
|
export ENTRYPOINT_SH_VERSION=v2
|
||||||
export CONFIG_INITIAL_JSON_VERSION=v1
|
export CONFIG_INITIAL_JSON_VERSION=v1
|
||||||
|
11
compose.insecure.yml
Normal file
11
compose.insecure.yml
Normal 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}"
|
20
compose.yml
20
compose.yml
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: dobbs/farm:1.0.21
|
image: dobbs/farm:1.1.1
|
||||||
command: /bin/sh entrypoint.sh
|
command: /bin/sh entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
|
- "${FEDWIKI_VOLUME}:/home/node/.wiki"
|
||||||
@ -40,15 +40,15 @@ services:
|
|||||||
- "caddy.tls.on_demand="
|
- "caddy.tls.on_demand="
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/home/node/.wiki"
|
- "backupbot.backup.path=/home/node/.wiki"
|
||||||
- "coop-cloud.${STACK_NAME}.version=2.0.2+1.0.21"
|
- "coop-cloud.${STACK_NAME}.version=2.7.0+1.1.1"
|
||||||
healthcheck:
|
# 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)
|
# 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');
|
# => { 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();'"
|
# process.exit(1); }); request.end();'"
|
||||||
interval: 10s
|
# interval: 10s
|
||||||
timeout: 2s
|
# timeout: 2s
|
||||||
retries: 2
|
# retries: 2
|
||||||
start_period: 30s
|
# start_period: 30s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
fedwiki:
|
fedwiki:
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -f .wiki/config.json ]; then
|
config_file="$HOME/.wiki/${CONFIG_FILE:-config.json}"
|
||||||
cp config/config.json .wiki/config.json
|
|
||||||
|
if [ ! -f "$config_file" ]; then
|
||||||
|
cp initial-config/config.json "$config_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wiki --farm
|
wiki --farm --config "$config_file"
|
||||||
|
1
release/2.1.5+1.0.27
Normal file
1
release/2.1.5+1.0.27
Normal file
@ -0,0 +1 @@
|
|||||||
|
y
|
1
release/2.3.0+1.1.1
Normal file
1
release/2.3.0+1.1.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
decaffeinated
|
1
release/2.4.0+1.1.1
Normal file
1
release/2.4.0+1.1.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
decaffeinate
|
1
release/2.5.0+1.1.1
Normal file
1
release/2.5.0+1.1.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
decaffeinate
|
1
release/2.6.0+1.1.1
Normal file
1
release/2.6.0+1.1.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
decaffeinated
|
Reference in New Issue
Block a user