"ep_subscript_and_superscript"
"ep_timesliderdiff"
];
- keys = {
- tools-etherpad-apikey = {
- destDir = "/run/keys/webapps";
+ keys = [
+ {
+ dest = "webapps/tools-etherpad-apikey";
permissions = "0400";
text = env.api_key;
- };
- tools-etherpad-sessionkey = {
- destDir = "/run/keys/webapps";
+ }
+ {
+ dest = "webapps/tools-etherpad-sessionkey";
permissions = "0400";
text = env.session_key;
- };
- tools-etherpad = {
- destDir = "/run/keys/webapps";
+ }
+ {
+ dest = "webapps/tools-etherpad";
permissions = "0400";
text =
# Make sure we’re not rebuilding whole libreoffice just because of a
"logconfig" : { "appenders": [ { "type": "console" } ] }
}
'';
- };
- };
+ }
+ ];
webappDir = stdenv.mkDerivation (fetchedGithub ./etherpad-lite.json // rec {
__noChroot = true;
patches = [ ./libreoffice_patch.diff ];
install -t $out/src/ -vDm 644 src/.ep_initialized
cp -a node_modules $out/
cp -a src/* $out/src/
- ln -sf /run/keys/webapps/tools-etherpad-sessionkey $out/SESSIONKEY.txt
- ln -sf /run/keys/webapps/tools-etherpad-apikey $out/APIKEY.txt
+ ln -sf /var/secrets/webapps/tools-etherpad-sessionkey $out/SESSIONKEY.txt
+ ln -sf /var/secrets/webapps/tools-etherpad-apikey $out/APIKEY.txt
cp ${jquery} $out/src/static/js/jquery.js
mkdir $out/doc