Skip to content

Commit

Permalink
Merge pull request #9 from EnigmaCurry/cryptpad
Browse files Browse the repository at this point in the history
Cryptpad
  • Loading branch information
EnigmaCurry authored May 16, 2022
2 parents c3011fa + e086803 commit e50c526
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
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

0 comments on commit e50c526

Please sign in to comment.