summaryrefslogtreecommitdiff
path: root/etherpad
diff options
context:
space:
mode:
Diffstat (limited to 'etherpad')
-rw-r--r--etherpad/.gitignore2
-rw-r--r--etherpad/Makefile27
-rw-r--r--etherpad/install.mk13
-rw-r--r--etherpad/settings.json.template134
4 files changed, 0 insertions, 176 deletions
diff --git a/etherpad/.gitignore b/etherpad/.gitignore
deleted file mode 100644
index 455789d..0000000
--- a/etherpad/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-var
-etherpad-*
diff --git a/etherpad/Makefile b/etherpad/Makefile
deleted file mode 100644
index aa010d5..0000000
--- a/etherpad/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-ETHERPAD_VERSION := 3.3.2
-SRC_DIR := etherpad-$(ETHERPAD_VERSION)
-
-.PHONY: all
-all: download_etherpad install_deps
-
-.PHONY: download_etherpad
-download_etherpad: $(SRC_DIR)
-
-$(SRC_DIR):
- wget -O- https://github.com/ether/etherpad/archive/refs/tags/v3.3.2.tar.gz | tar -xz
-
-.PHONY: install_deps
-install_deps: $(SRC_DIR)/node_modules
-
-$(SRC_DIR)/node_modules: $(SRC_DIR) $(SRC_DIR)/settings.json $(SRC_DIR)/package.json $(SRC_DIR)/pnpm-lock.yaml
- cd $(SRC_DIR) && pnpm install
-
-$(SRC_DIR)/settings.json: $(SRC_DIR) settings.json.template
-ifdef ETHERPAD_PORT
- ETHERPAD_PORT=$(ETHERPAD_PORT) envsubst -no-unset -i settings.json.template -o $(SRC_DIR)/settings.json
-else
- $(error ETHERPAD_PORT is not defined)
-endif
-
-clean:
- rm -rf etherpad-*/
diff --git a/etherpad/install.mk b/etherpad/install.mk
deleted file mode 100644
index 17d9bbf..0000000
--- a/etherpad/install.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-.PHONY: install
-install: $(ETHERPAD_DATA_DIR)
-
-.PHONY: reinstall
-reinstall: $(ETHERPAD_DATA_DIR)
-
-$(ETHERPAD_DATA_DIR):
- sudo mkdir -p $(ETHERPAD_DATA_DIR)
- ETHERPAD_USER=$(whoami) && sudo chown $$ETHERPAD_USER:$$ETHERPAD_USER $(ETHERPAD_DATA_DIR)
-
-.PHONY: uninstall
-uninstall:
- $(info Nothing to do)
diff --git a/etherpad/settings.json.template b/etherpad/settings.json.template
deleted file mode 100644
index 09cf5c7..0000000
--- a/etherpad/settings.json.template
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "title": "joeac's docs",
- "showRecentPads": true,
- "favicon": null,
- "skinName": "colibris",
- "skinVariants": "super-light-toolbar super-light-editor light-background",
- "ip": "0.0.0.0",
- "port": ${ETHERPAD_PORT},
- "showSettingsInAdminPage": true,
- "enableMetrics": "$${ENABLE_METRICS:true}",
- "cleanup": {
- "enabled": false,
- "keepRevisions": 5
- },
- "dbType": "sqlite",
- "dbSettings": {
- "filename": "var/etherpad.sq3"
- },
- "defaultPadText" : "",
- "padOptions": {
- "noColors": false,
- "showControls": true,
- "showChat": true,
- "showLineNumbers": true,
- "useMonospaceFont": false,
- "userName": null,
- "userColor": null,
- "rtl": false,
- "alwaysShowChat": false,
- "chatAndUsers": false,
- "lang": null
- },
- "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
- },
- "updateServer": "https://etherpad.org/ep_infos",
- "suppressErrorsInPadText": false,
- "requireSession": false,
- "editOnly": false,
- "minify": true,
- "maxAge": 21600,
- "soffice": null,
- "docxExport": true,
- "allowUnknownFileEnds": true,
- "requireAuthentication": false,
- "requireAuthorization": false,
- "trustProxy": false,
- "cookie": {
- "keyRotationInterval": 86400000,
- "sameSite": "Lax",
- "sessionLifetime": 864000000,
- "sessionRefreshInterval": 86400000,
- "sessionCleanup": true
- },
- "disableIPlogging": false,
- "automaticReconnectionTimeout": 0,
- "scrollWhenFocusLineIsOutOfViewport": {
- "percentage": {
- "editionAboveViewport": 0,
- "editionBelowViewport": 0
- },
- "duration": 0,
- "scrollWhenCaretIsInTheLastLineOfViewport": false,
- "percentageToScrollWhenUserPressesArrowUp": 0
- },
- "users": {
- "admin": {
- "password": "admin",
- "is_admin": true
- }
- },
- "socketTransportProtocols" : ["websocket", "polling"],
- "socketIo": {
- "maxHttpBufferSize": 1000000
- },
- "loadTest": false,
- "dumpOnUncleanExit": false,
- "importExportRateLimiting": {
- "windowMs": 90000,
- "max": 10
- },
- "importMaxFileSize": 52428800, // 50 * 1024 * 1024
- "authenticationMethod": "$${AUTHENTICATION_METHOD:sso}",
- "enableDarkMode": "$${ENABLE_DARK_MODE:true}",
- "enablePadWideSettings": "$${ENABLE_PAD_WIDE_SETTINGS:false}",
- "commitRateLimiting": {
- "duration": 1,
- "points": 10
- },
- "logLayoutType": "colored",
- "customLocaleStrings": {},
- "enableAdminUITests": false,
- "lowerCasePadIds": false,
- "sso": {
- "issuer": "$${SSO_ISSUER:http://localhost:${ETHERPAD_PORT}}",
- "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:${ETHERPAD_PORT}/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:${ETHERPAD_PORT}/}"]
- }
- ]
- }
-}