11 Commits

Author SHA1 Message Date
9c18c176c5 chore: upgrade to 0.6.0+v2026.5.1
All checks were successful
cc-ci/testme cc-ci: success
2026-06-05 01:26:43 +00:00
96df5bda68 Merge pull request 'chore: upgrade to 0.5.5+v2026.2.0' (#12) from upgrade-0.5.5+v2026.2.0 into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/cryptpad/pulls/12
2026-06-02 16:40:33 +00:00
e2cbecdc89 chore: upgrade to 0.5.5+v2026.2.0
All checks were successful
cc-ci/testme cc-ci: success
2026-06-02 03:52:26 +00:00
bb655259c0 Merge pull request 'Shorten config name to fit char limits' (#10) from shorten into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/cryptpad/pulls/10
2026-04-20 17:35:23 +00:00
6d047f5987 bump to 0.5.4+v2026.2.0 2026-04-20 17:31:08 +00:00
081c196078 shorten app_config_js config name to fit 64-char Docker limit 2026-04-20 17:30:22 +00:00
a9f451a177 Merge pull request 'Add optional customizatoin for restriction of guest users' (#9) from restrict into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/cryptpad/pulls/9
2026-04-20 17:24:17 +00:00
81119b2eea bump to 0.5.3+v2026.2.0 2026-04-20 13:23:19 -04:00
38393e1fd1 add RESTRICT_GUEST_ACCESS to block unregistered users from all applications 2026-04-20 13:23:19 -04:00
9922390ce3 bump to 0.5.2+v2026.2.0 2026-03-01 19:50:02 -05:00
c1ee1d9817 Merge pull request 'split sso compose into two compose' (#6) from two-compose into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/cryptpad/pulls/6
2026-03-02 00:49:32 +00:00
4 changed files with 39 additions and 3 deletions

View File

@ -18,6 +18,10 @@ SANDBOX_DOMAIN=sandbox.cryptpad.example.com
#EXTRA_DOMAINS=', `www.cryptpad.example.com`'
LETS_ENCRYPT_ENV=production
## Set to true to block unregistered users from accessing any CryptPad applications
## See https://docs.cryptpad.org/en/admin_guide/customization.html#restricting-guest-access
#RESTRICT_GUEST_ACCESS=false
## SSO / OIDC (optional — uncomment below and add compose.sso.yml to COMPOSE_FILE to enable)
# COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml"
#SSO_ENABLED=true

View File

@ -3,3 +3,4 @@ export CONFIG_JS_VERSION=v2
export NGINX_CONF_VERSION=v1
export SSO_ENTRYPOINT_VERSION=v6
export SSO_JS_VERSION=v3
export APP_CONFIG_JS_VERSION=v1

View File

@ -0,0 +1,24 @@
// CryptPad application customization — generated from environment variables
// See https://docs.cryptpad.org/en/admin_guide/customization.html
// For default file, see: https://github.com/cryptpad/cryptpad/blob/main/customize.dist/application_config.js
(() => {
const factory = (AppConfig) => {
{{ if eq (env "RESTRICT_GUEST_ACCESS") "true" }}
// Block unregistered users from accessing any applications
AppConfig.registeredOnlyTypes = AppConfig.availablePadTypes.slice();
{{ end }}
return AppConfig;
};
// Do not change code below
if (typeof(module) !== 'undefined' && module.exports) {
module.exports = factory(
require('../www/common/application_config_internal.js')
);
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define(['/common/application_config_internal.js'], factory);
}
})();

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: cryptpad/cryptpad:version-2026.2.0
image: cryptpad/cryptpad:version-2026.5.1
command: ["npm", "start"]
networks:
- backend
@ -16,6 +16,7 @@ services:
- "CPAD_HTTP2_DISABLE=true"
- "CPAD_TRUST_PROXY=1"
- "CPAD_CONF=/cryptpad/config/config.js"
- "RESTRICT_GUEST_ACCESS=${RESTRICT_GUEST_ACCESS:-false}"
volumes:
- cryptpad_blob:/cryptpad/blob
- cryptpad_block:/cryptpad/block
@ -26,6 +27,8 @@ services:
configs:
- source: config_js
target: /cryptpad/config/config.js
- source: app_config_js
target: /cryptpad/customize/application_config.js
deploy:
restart_policy:
@ -33,7 +36,7 @@ services:
labels:
- "traefik.enable=false"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "coop-cloud.${STACK_NAME}.version=0.5.1+v2026.2.0"
- "coop-cloud.${STACK_NAME}.version=0.6.0+v2026.5.1"
- "backupbot.backup=true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
@ -43,7 +46,7 @@ services:
start_period: 1m
web:
image: nginx:1.29
image: nginx:1.31
configs:
- source: nginx_conf
target: /etc/nginx/conf.d/default.conf
@ -86,3 +89,7 @@ configs:
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
file: nginx.conf.tmpl
template_driver: golang
app_config_js:
name: ${STACK_NAME}_app_config_js_${APP_CONFIG_JS_VERSION}
file: application_config.js.tmpl
template_driver: golang