Fixing access rights
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
export CONFIG_VERSION=v3
|
||||
export CONFIG_JS_VERSION=v2
|
||||
export NGINX_CONF_VERSION=v2
|
||||
export SSO_ENTRYPOINT_VERSION=v7
|
||||
export INFRA_JS_VERSION=v1
|
||||
export SSO_ENTRYPOINT_VERSION=v8
|
||||
export SSO_JS_VERSION=v3
|
||||
export APP_CONFIG_JS_VERSION=v1
|
||||
export ONLYOFFICE_ENTRYPOINT_VERSION=v2
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ services:
|
||||
target: /sso-entrypoint.sh
|
||||
mode: 0755
|
||||
- source: sso_js
|
||||
target: /sso.js
|
||||
target: /cryptpad/config/sso.js
|
||||
|
||||
volumes:
|
||||
cryptpad_plugins:
|
||||
|
||||
@@ -27,6 +27,8 @@ services:
|
||||
configs:
|
||||
- source: config_js
|
||||
target: /cryptpad/config/config.js
|
||||
- source: infra_js
|
||||
target: /cryptpad/config/infra.js
|
||||
- source: app_config_js
|
||||
target: /cryptpad/customize/application_config.js
|
||||
|
||||
@@ -85,6 +87,10 @@ configs:
|
||||
name: ${STACK_NAME}_config_${CONFIG_VERSION}
|
||||
file: config.js.tmpl
|
||||
template_driver: golang
|
||||
infra_js:
|
||||
name: ${STACK_NAME}_infra_js_${INFRA_JS_VERSION}
|
||||
file: infra.js.tmpl
|
||||
template_driver: golang
|
||||
nginx_conf:
|
||||
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
||||
file: nginx.conf.tmpl
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
// CryptPad infrastructure configuration (cryptpad-server, since 2026.10.0)
|
||||
// Based on config.local/infra.example.js from the image.
|
||||
//
|
||||
// Provided as a Docker config because /cryptpad/config is root-owned in the
|
||||
// image: docker-entrypoint.sh cannot create this file itself.
|
||||
// Note: lib/load-config.js additionally overrides origin/sandboxOrigin and
|
||||
// binds all nodes to 0.0.0.0 when CPAD_MAIN_DOMAIN is set.
|
||||
|
||||
module.exports = {
|
||||
"public": {
|
||||
origin: "{{ env "CPAD_MAIN_DOMAIN" }}",
|
||||
sandboxOrigin: "{{ env "CPAD_SANDBOX_DOMAIN" }}",
|
||||
httpHost: "0.0.0.0",
|
||||
httpPort: 3000,
|
||||
httpSafePort: 3001,
|
||||
externalWebsocketURL: undefined,
|
||||
fileHost: undefined,
|
||||
httpServerId: "",
|
||||
},
|
||||
"front": [
|
||||
{ host: "0.0.0.0", port: 3010 },
|
||||
{ host: "0.0.0.0", port: 3011 },
|
||||
],
|
||||
"core": [
|
||||
{ host: "0.0.0.0", port: 3020 },
|
||||
{ host: "0.0.0.0", port: 3021 },
|
||||
],
|
||||
"storage": [
|
||||
{ host: "0.0.0.0", port: 3030, wsPort: 3040 },
|
||||
{ host: "0.0.0.0", port: 3031, wsPort: 3041 },
|
||||
]
|
||||
};
|
||||
@@ -6,8 +6,9 @@ Recipe changes:
|
||||
config is updated (NGINX_CONF_VERSION=v2).
|
||||
- CPAD_MAIN_DOMAIN / CPAD_SANDBOX_DOMAIN now include the https:// scheme, as
|
||||
the new server reads them directly. Nothing to change in your .env.
|
||||
- On first start the image creates config/infra.js from the example; the
|
||||
origins, bind address and ports are taken from the env vars above.
|
||||
- /cryptpad/config is now root-owned in the image, so nothing can be written
|
||||
there at runtime. config/infra.js (new) and config/sso.js are therefore
|
||||
mounted as Docker configs (INFRA_JS_VERSION=v1) instead of being copied.
|
||||
- Office apps are now based on Euro-Office 9.3 (install-office.sh). Existing
|
||||
OnlyOffice deployments keep working; new assets are downloaded on start.
|
||||
- SSO: the plugin must be upgraded to 1.0.0. If your .env pins
|
||||
|
||||
+2
-5
@@ -15,11 +15,8 @@ PLUGIN_DIR="/cryptpad/lib/plugins/sso"
|
||||
VERSION_FILE="${PLUGIN_DIR}/.version"
|
||||
SSO_PLUGIN_VERSION="${SSO_PLUGIN_VERSION:-1.0.0}"
|
||||
|
||||
# Copy SSO config template into place (mounted as Docker config)
|
||||
if [ -f /sso.js ]; then
|
||||
cp /sso.js /cryptpad/config/sso.js
|
||||
echo "[sso-entrypoint] Copied sso.js config into /cryptpad/config/sso.js"
|
||||
fi
|
||||
# sso.js is mounted directly at /cryptpad/config/sso.js as a Docker config:
|
||||
# since CryptPad 2026.10.0, /cryptpad/config is root-owned and not writable.
|
||||
|
||||
# Install/update the SSO plugin
|
||||
if [ -f "${VERSION_FILE}" ] && [ "$(cat "${VERSION_FILE}")" = "${SSO_PLUGIN_VERSION}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user