Skip to content
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
FROM etherpad/etherpad:2.6.1
COPY settings.json /opt/etherpad-lite/settings.json
145 changes: 145 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"title": "Invisible Notes",
"showRecentPads": true,
"favicon": null,
"skinName": "colibris",
"skinVariants": "super-light-toolbar super-light-editor light-background",
"ip": "0.0.0.0",
"port": 9001,
"showSettingsInAdminPage": true,
"enableMetrics": true,
"cleanup": {
"enabled": false,
"keepRevisions": 5
},
"authenticationMethod": "password",
"enableDarkMode": true,
"updateServer": "https://etherpad.org/ep_infos",
"dbType": "${DB_TYPE:dirty}",
"dbSettings": {
"host": "${DB_HOST:undefined}",
"port": "${DB_PORT:undefined}",
"database": "${DB_NAME:undefined}",
"user": "${DB_USER:undefined}",
"password": "${DB_PASS:undefined}",
"charset": "${DB_CHARSET:undefined}",
"filename": "${DB_FILENAME:var/dirty.db}",
"collection": "${DB_COLLECTION:undefined}",
"url": "${DB_URL:undefined}"
},
"defaultPadText": "Meeting Notes\n\nDate: \nAttendees: \nAgenda:\n- \n\nNotes:\n\nAction Items:\n- \n",
"padOptions": {
"noColors": false,
"showControls": true,
"showChat": true,
"showLineNumbers": false,
"useMonospaceFont": false,
"userName": null,
"userColor": null,
"rtl": false,
"alwaysShowChat": true,
"chatAndUsers": true,
"lang": "en"
},
"padShortcutEnabled": {
"altF9": true,
"altC": true,
"cmdShift2": true,
"delete": true,
"return": true,
"esc": true,
"cmdS": true,
"tab": true,
"cmdZ": true,
"cmdY": true,
"cmdI": true,
"cmdB": true,
"cmdU": true,
"cmd5": true,
"cmdShiftL": true,
"cmdShiftN": true,
"cmdShift1": true,
"cmdShiftC": true,
"cmdH": true,
"ctrlHome": true,
"pageUp": true,
"pageDown": true
},
"suppressErrorsInPadText": false,
"requireSession": false,
"editOnly": false,
"minify": true,
"maxAge": 21600,
"abiword": null,
"soffice": null,
"allowUnknownFileEnds": true,
"requireAuthentication": false,
"requireAuthorization": false,
"trustProxy": true,
"cookie": {
"keyRotationInterval": 86400000,
"sameSite": "Lax",
"sessionLifetime": 864000000,
"sessionRefreshInterval": 86400000
},
"disableIPlogging": true,
"automaticReconnectionTimeout": 0,
"scrollWhenFocusLineIsOutOfViewport": {
"percentage": {
"editionAboveViewport": 0,
"editionBelowViewport": 0
},
"duration": 0,
"scrollWhenCaretIsInTheLastLineOfViewport": false,
"percentageToScrollWhenUserPressesArrowUp": 0
},
"users": {
"admin": {
"password": "${ADMIN_PASSWORD:null}",
"is_admin": true
},
"user": {
"password": "${USER_PASSWORD:null}",
Comment on lines +98 to +102

Copilot AI Mar 1, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default password fallback ${ADMIN_PASSWORD:null} / ${USER_PASSWORD:null} will evaluate to the literal string "null" when the env var is missing, which creates a well-known weak credential if the deployment is misconfigured. Prefer having no default (so startup/login fails clearly) or choose a non-guessable default and document that ADMIN_PASSWORD/USER_PASSWORD must be set in the deployment environment.

Suggested change
"password": "${ADMIN_PASSWORD:null}",
"is_admin": true
},
"user": {
"password": "${USER_PASSWORD:null}",
"password": "${ADMIN_PASSWORD}",
"is_admin": true
},
"user": {
"password": "${USER_PASSWORD}",

Copilot uses AI. Check for mistakes.
"is_admin": false
}
},
"socketTransportProtocols": ["websocket", "polling"],
"socketIo": {
"maxHttpBufferSize": 50000
},
"loadTest": false,
"dumpOnUncleanExit": false,
"importExportRateLimiting": {
"windowMs": 90000,
"max": 10
},
"importMaxFileSize": 52428800,
"commitRateLimiting": {
"duration": 1,
"points": 10
},
"exposeVersion": false,
"loglevel": "INFO",
"customLocaleStrings": {},
"enableAdminUITests": false,
"lowerCasePadIds": true,
"sso": {
"issuer": "${SSO_ISSUER:http://localhost:9001}",
"clients": [
{
"client_id": "${ADMIN_CLIENT:admin_client}",
"client_secret": "${ADMIN_SECRET:admin}",
"grant_types": ["authorization_code"],
"response_types": ["code"],
"redirect_uris": ["${ADMIN_REDIRECT:http://localhost:9001/admin/}"]
},
{
"client_id": "${USER_CLIENT:user_client}",
"client_secret": "${USER_SECRET:user}",
"grant_types": ["authorization_code"],
"response_types": ["code"],
"redirect_uris": ["${USER_REDIRECT:http://localhost:9001/}"]
}
]
}
}