diff --git a/server-ce/config/settings.js b/server-ce/config/settings.js index 7d9fd7702e..864b62261c 100644 --- a/server-ce/config/settings.js +++ b/server-ce/config/settings.js @@ -173,6 +173,12 @@ const settings = { clsiCacheDir: Path.join(DATA_DIR, 'cache'), // Where to write the output files to disk after running LaTeX outputDir: Path.join(DATA_DIR, 'output'), + // Where to store published-presentation snapshots served at /p/:token. + // Lives on the data volume so it is writable by the app user (and, with a + // persistent volume, survives restarts). + publishedPresentationsFolder: + process.env.PUBLISHED_PRESENTATIONS_PATH || + Path.join(DATA_DIR, 'published'), }, // Server Config