Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptpad #9

Merged
merged 2 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cryptpad/.env-dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ ACME_CERT_RESOLVER=production
## Go to account settings, find Public Signing Key, and replace it here in ADMIN_KEY:
## Then restart cryptpad, and your account will now be an administrator.
ADMIN_KEY=[[email protected]/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]

# Enter your email if you want it displayed for support purposes:
[email protected]

# Some Cryptpad configs:
DEFAULT_STORAGE_LIMIT="1000 * 1024 * 1024"
MAX_UPLOAD_SIZE="100 * 1024 * 1024"
BLOCK_DAILY_CHECK=true
3 changes: 3 additions & 0 deletions cryptpad/config/config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ module.exports = {
* If you want to block this check-in and remain set 'blockDailyCheck' to true.
*/
//blockDailyCheck: false,
blockDailyCheck: ${BLOCK_DAILY_CHECK},

/*
* By default users get 50MB of storage by registering on an instance.
Expand All @@ -170,6 +171,7 @@ module.exports = {
* hint: 50MB is 50 * 1024 * 1024
*/
//defaultStorageLimit: 50 * 1024 * 1024,
defaultStorageLimit: ${DEFAULT_STORAGE_LIMIT},


/* =====================
Expand Down Expand Up @@ -226,6 +228,7 @@ module.exports = {
* defaults to 20MB if no value is provided
*/
//maxUploadSize: 20 * 1024 * 1024,
maxUploadSize: ${MAX_UPLOAD_SIZE},

/*
* CryptPad allows administrators to give custom limits to their friends.
Expand Down
7 changes: 5 additions & 2 deletions cryptpad/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ services:
security_opt:
- no-new-privileges:true
environment:
- CPAD_MAIN_DOMAIN
- CPAD_SANDBOX_DOMAIN
- CPAD_MAIN_DOMAIN=${CRYPTPAD_TRAEFIK_HOST}
- CPAD_SANDBOX_DOMAIN=${CRYPTPAD_SANDBOX_DOMAIN}
- ADMIN_KEY
- ADMIN_EMAIL
- PRINT_CONFIG
- DEFAULT_STORAGE_LIMIT=${DEFAULT_STORAGE_LIMIT}
- MAX_UPLOAD_SIZE=${MAX_UPLOAD_SIZE}
- BLOCK_DAILY_CHECK=${BLOCK_DAILY_CHECK}
volumes:
- config:/cryptpad/config

Expand Down