This commit is contained in:
soraefir
2026-05-09 11:56:42 +02:00
parent 1ca61b70d2
commit da51e61c05

View File

@@ -2,84 +2,84 @@
let let
serverCfg = config.syscfg.server; serverCfg = config.syscfg.server;
settings = pkgs.writeTextDir"etc/etherpad/settings.json" (builtins.toJSON { settings = pkgs.writeTextDir"etc/etherpad/settings.json" (builtins.toJSON {
title= "${TITLE:Etherpad}"; title= "\${TITLE:Etherpad}";
showRecentPads = "${SHOW_RECENT_PADS:true}"; showRecentPads = "\${SHOW_RECENT_PADS:true}";
favicon = "${FAVICON:null}"; favicon = "\${FAVICON:null}";
publicURL = "${PUBLIC_URL:null}"; publicURL = "\${PUBLIC_URL:null}";
skinName = "${SKIN_NAME:colibris}"; skinName = "\${SKIN_NAME:colibris}";
skinVariants = "${SKIN_VARIANTS:super-light-toolbar super-light-editor light-background}"; skinVariants = "\${SKIN_VARIANTS:super-light-toolbar super-light-editor light-background}";
ip = "${IP:0.0.0.0}"; ip = "\${IP:0.0.0.0}";
port = "${PORT:9001}"; port = "\${PORT:9001}";
showSettingsInAdminPage = "${SHOW_SETTINGS_IN_ADMIN_PAGE:true}"; showSettingsInAdminPage = "\${SHOW_SETTINGS_IN_ADMIN_PAGE:true}";
enableMetrics = "${ENABLE_METRICS:true}"; enableMetrics = "\${ENABLE_METRICS:true}";
updates.tier = "off"; updates.tier = "off";
cleanup.enabled = false; cleanup.enabled = false;
gdprAuthorErasure.enabled = "${GDPR_AUTHOR_ERASURE_ENABLED:false}"; gdprAuthorErasure.enabled = "\${GDPR_AUTHOR_ERASURE_ENABLED:false}";
authenticationMethod = "${AUTHENTICATION_METHOD:sso}"; authenticationMethod = "\${AUTHENTICATION_METHOD:sso}";
enableDarkMode = "${ENABLE_DARK_MODE:true}"; enableDarkMode = "\${ENABLE_DARK_MODE:true}";
enablePadWideSettings = "${ENABLE_PAD_WIDE_SETTINGS:true}"; enablePadWideSettings = "\${ENABLE_PAD_WIDE_SETTINGS:true}";
dbType = "${DB_TYPE:dirty}"; dbType = "\${DB_TYPE:dirty}";
dbSettings = { dbSettings = {
host = "${DB_HOST:undefined}"; host = "\${DB_HOST:undefined}";
port = "${DB_PORT:undefined}"; port = "\${DB_PORT:undefined}";
database = "${DB_NAME:undefined}"; database = "\${DB_NAME:undefined}";
user = "${DB_USER:undefined}"; user = "\${DB_USER:undefined}";
password = "${DB_PASS:undefined}"; password = "\${DB_PASS:undefined}";
charset = "${DB_CHARSET:undefined}"; charset = "\${DB_CHARSET:undefined}";
filename = "${DB_FILENAME:var/dirty.db}"; filename = "\${DB_FILENAME:var/dirty.db}";
collection = "${DB_COLLECTION:undefined}"; collection = "\${DB_COLLECTION:undefined}";
url = "${DB_URL:undefined}"; url = "\${DB_URL:undefined}";
}; };
defaultPadText = "${DEFAULT_PAD_TEXT:Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nGet involved with Etherpad at https:\/\/etherpad.org\n}"; defaultPadText = "\${DEFAULT_PAD_TEXT:P A D}";
padOptions = { padOptions = {
noColors = "${PAD_OPTIONS_NO_COLORS:false}"; noColors = "\${PAD_OPTIONS_NO_COLORS:false}";
showControls = "${PAD_OPTIONS_SHOW_CONTROLS:true}"; showControls = "\${PAD_OPTIONS_SHOW_CONTROLS:true}";
showChat = "${PAD_OPTIONS_SHOW_CHAT:true}"; showChat = "\${PAD_OPTIONS_SHOW_CHAT:true}";
showLineNumbers = "${PAD_OPTIONS_SHOW_LINE_NUMBERS:true}"; showLineNumbers = "\${PAD_OPTIONS_SHOW_LINE_NUMBERS:true}";
useMonospaceFont = "${PAD_OPTIONS_USE_MONOSPACE_FONT:false}"; useMonospaceFont = "\${PAD_OPTIONS_USE_MONOSPACE_FONT:false}";
userName = "${PAD_OPTIONS_USER_NAME:null}"; userName = "\${PAD_OPTIONS_USER_NAME:null}";
userColor = "${PAD_OPTIONS_USER_COLOR:null}"; userColor = "\${PAD_OPTIONS_USER_COLOR:null}";
rtl = "${PAD_OPTIONS_RTL:false}"; rtl = "\${PAD_OPTIONS_RTL:false}";
alwaysShowChat = "${PAD_OPTIONS_ALWAYS_SHOW_CHAT:false}"; alwaysShowChat = "\${PAD_OPTIONS_ALWAYS_SHOW_CHAT:false}";
chatAndUsers = "${PAD_OPTIONS_CHAT_AND_USERS:false}"; chatAndUsers = "\${PAD_OPTIONS_CHAT_AND_USERS:false}";
lang = "${PAD_OPTIONS_LANG:null}"; lang = "\${PAD_OPTIONS_LANG:null}";
fadeInactiveAuthorColors = "${PAD_OPTIONS_FADE_INACTIVE_AUTHOR_COLORS:true}"; fadeInactiveAuthorColors = "\${PAD_OPTIONS_FADE_INACTIVE_AUTHOR_COLORS:true}";
enforceReadableAuthorColors = "${PAD_OPTIONS_ENFORCE_READABLE_AUTHOR_COLORS:true}"; enforceReadableAuthorColors = "\${PAD_OPTIONS_ENFORCE_READABLE_AUTHOR_COLORS:true}";
}; };
requireSession = "${REQUIRE_SESSION:false}"; requireSession = "\${REQUIRE_SESSION:false}";
editOnly = "${EDIT_ONLY:false}"; editOnly = "\${EDIT_ONLY:false}";
minify = "${MINIFY:true}"; minify = "\${MINIFY:true}";
requireAuthentication = "${REQUIRE_AUTHENTICATION:true}"; requireAuthentication = "\${REQUIRE_AUTHENTICATION:true}";
requireAuthorization = "${REQUIRE_AUTHORIZATION:false}"; requireAuthorization = "\${REQUIRE_AUTHORIZATION:false}";
trustProxy = "${TRUST_PROXY:false}"; trustProxy = "\${TRUST_PROXY:false}";
socketTransportProtocols = ["websocket", "polling"]; socketTransportProtocols = ["websocket", "polling"];
socketIo.maxHttpBufferSize = "${SOCKETIO_MAX_HTTP_BUFFER_SIZE:1000000}"; socketIo.maxHttpBufferSize = "\${SOCKETIO_MAX_HTTP_BUFFER_SIZE:1000000}";
indentationOnNewLine = true; indentationOnNewLine = true;
exposeVersion = "${EXPOSE_VERSION:false}"; exposeVersion = "\${EXPOSE_VERSION:false}";
loglevel = "${LOGLEVEL:INFO}"; loglevel = "\${LOGLEVEL:INFO}";
lowerCasePadIds = "${LOWER_CASE_PAD_IDS:true}"; lowerCasePadIds = "\${LOWER_CASE_PAD_IDS:true}";
sso = { sso = {
issuer = "${SSO_ISSUER:http://localhost:9001}"; issuer = "\${SSO_ISSUER:http://localhost:9001}";
clients = [ clients = [
{ {
client_id = "${ADMIN_CLIENT:admin_client}"; client_id = "\${ADMIN_CLIENT:admin_client}";
client_secret = "${ADMIN_SECRET:admin}"; client_secret = "\${ADMIN_SECRET:admin}";
grant_types = ["authorization_code"]; grant_types = ["authorization_code"];
response_types = ["code"]; response_types = ["code"];
redirect_uris = ["${ADMIN_REDIRECT:http://localhost:9001/admin/}"]; redirect_uris = ["\${ADMIN_REDIRECT:http://localhost:9001/admin/}"];
} }
{ {
client_id = "${USER_CLIENT:user_client}"; client_id = "\${USER_CLIENT:user_client}";
client_secret = "${USER_SECRET:user}"; client_secret = "\${USER_SECRET:user}";
grant_types = ["authorization_code"]; grant_types = ["authorization_code"];
response_types = ["code"]; response_types = ["code"];
redirect_uris = ["${USER_REDIRECT:http://localhost:9001/}"]; redirect_uris = ["\${USER_REDIRECT:http://localhost:9001/}"];
} }
]; ];
}; };