diff --git a/conf/overleaf-history-v1.service b/conf/overleaf-history-v1.service index d055da9..917dc41 100644 --- a/conf/overleaf-history-v1.service +++ b/conf/overleaf-history-v1.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" Environment="NODE_CONFIG_DIR=__INSTALL_DIR__/live/services/history-v1/config" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/history-v1/app.js StandardOutput=append:/var/log/__APP__/history-v1.log diff --git a/conf/production.json b/conf/production.json index d66b56a..0a6115a 100644 --- a/conf/production.json +++ b/conf/production.json @@ -1,24 +1,24 @@ { - "persistor": { - "backend": "fs", - "useSubdirectories": true - }, - "basicHttpAuth": { - "password": "password" - }, - "useDeleteObjects": "false", - "jwtAuth": { - "algorithm": "HS256" - }, - "mongo": {}, - "blobStore": { - "globalBucket": "__DATA_DIR__/history/overleaf-global-blobs", - "projectBucket": "__DATA_DIR__/history/overleaf-project-blobs" - }, - "chunkStore": { - "bucket": "__DATA_DIR__/history/overleaf-chunks" - }, - "zipStore": { - "bucket": "__DATA_DIR__/history/overleaf-zips" - } - } \ No newline at end of file + "persistor": { + "backend": "fs", + "useSubdirectories": true + }, + "basicHttpAuth": { + "password": "password" + }, + "useDeleteObjects": "false", + "jwtAuth": { + "algorithm": "HS256" + }, + "mongo": {}, + "blobStore": { + "globalBucket": "__DATA_DIR__/history/overleaf-global-blobs", + "projectBucket": "__DATA_DIR__/history/overleaf-project-blobs" + }, + "chunkStore": { + "bucket": "__DATA_DIR__/history/overleaf-chunks" + }, + "zipStore": { + "bucket": "__DATA_DIR__/history/overleaf-zips" + } +} \ No newline at end of file diff --git a/conf/settings.js b/conf/settings.js index 0a63d27..c0d4887 100644 --- a/conf/settings.js +++ b/conf/settings.js @@ -57,7 +57,7 @@ const settings = { port: __PORT__, allowAnonymousReadAndWriteSharing: - process.env.SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true', + process.env.OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING === 'true', // Databases // --------- diff --git a/conf/variables.env b/conf/variables.env index f2f3409..e213152 100644 --- a/conf/variables.env +++ b/conf/variables.env @@ -1,7 +1,7 @@ OVERLEAF_APP_NAME="YunoHost Overleaf Community Edition" -SHARELATEX_PORT=__PORT__ +OVERLEAF_PORT=__PORT__ -SHARELATEX_CONFIG="__INSTALL_DIR__/settings.js" +OVERLEAF_CONFIG="__INSTALL_DIR__/settings.js" ADMIN_PRIVILEGE_AVAILABLE=true OPTIMISE_PDF=true NODE_ENV=production @@ -22,6 +22,9 @@ OVERLEAF_SITE_LANGUAGE="__LANGUAGE__" ENABLED_LINKED_FILE_TYPES=project_file,project_output_file +OVERLEAF_ALLOW_PUBLIC_ACCESS=true +OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING=true + # Enables Thumbnail generation using ImageMagick ENABLE_CONVERSIONS=true @@ -41,17 +44,17 @@ OVERLEAF_BEHIND_PROXY=true OVERLEAF_SECURE_COOKIE=false OVERLEAF_SITE_URL=https://__DOMAIN__ -# SHARELATEX_NAV_TITLE=Our Overleaf Instance -# SHARELATEX_HEADER_IMAGE_URL=http://somewhere.com/mylogo.png +# OVERLEAF_NAV_TITLE=Our Overleaf Instance +# OVERLEAF_HEADER_IMAGE_URL=http://somewhere.com/mylogo.png OVERLEAF_ADMIN_EMAIL=__APP__@__DOMAIN__ -# SHARELATEX_LEFT_FOOTER=[{"text":"Powered by Overleaf © 2021", "url": "https://www.overleaf.com"}, {"text": "Contact your support team", "url": "mailto:support@example.com"} ] -# SHARELATEX_RIGHT_FOOTER=[{"text":"Hello I am on the Right"}] +# OVERLEAF_LEFT_FOOTER=[{"text":"Powered by Overleaf © 2021", "url": "https://www.overleaf.com"}, {"text": "Contact your support team", "url": "mailto:support@example.com"} ] +# OVERLEAF_RIGHT_FOOTER=[{"text":"Hello I am on the Right"}] OVERLEAF_EMAIL_FROM_ADDRESS=__APP__@__DOMAIN__ -# SHARELATEX_EMAIL_AWS_SES_ACCESS_KEY_ID= -# SHARELATEX_EMAIL_AWS_SES_SECRET_KEY= +# OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID= +# OVERLEAF_EMAIL_AWS_SES_SECRET_KEY= OVERLEAF_EMAIL_SMTP_HOST=__MAIN_DOMAIN__ OVERLEAF_EMAIL_SMTP_PORT=587