From caea90e7422922cf71fe646988a4aa8e179133aa Mon Sep 17 00:00:00 2001 From: Matteo Cargnelutti Date: Fri, 18 Nov 2022 14:18:32 -0500 Subject: [PATCH] Cleanup --- .gitignore | 2 +- app/const.js | 13 +++++++------ app/static/global.css | 0 app/static/public-keys.txt | 1 - app/templates/index.njk | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 app/static/global.css delete mode 100644 app/static/public-keys.txt diff --git a/.gitignore b/.gitignore index d773fef..cca5a68 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ app/data/*.json app/data/*.tsv yt-dlp app/tmp/*.pdf -app/tmp/*.mp4 \ No newline at end of file +app/tmp/*.mp4 diff --git a/app/const.js b/app/const.js index 56a62e9..2a82f18 100644 --- a/app/const.js +++ b/app/const.js @@ -9,7 +9,13 @@ * Path to the folder holding the certificates used for signing the PDFs. * @constant */ -export const CERTS_PATH = `${process.env.PWD}/certs/`; +export const CERTS_PATH = process.env.CERTS_PATH ? process.env.CERTS_PATH : `${process.env.PWD}/certs/`; + +/** + * Path to the "data" folder. + */ + export const DATA_PATH = process.env.DATA_PATH ? process.env.DATA_PATH : `${process.env.PWD}/app/data/`; + /** * Path to the folder in which temporary files will be written by the app. @@ -17,11 +23,6 @@ export const CERTS_PATH = `${process.env.PWD}/certs/`; */ export const TMP_PATH = `${process.env.PWD}/app/tmp/`; -/** - * Path to the "data" folder. - */ -export const DATA_PATH = `${process.env.PWD}/app/data/`; - /** * Path to the "templates" folder. */ diff --git a/app/static/global.css b/app/static/global.css deleted file mode 100644 index e69de29..0000000 diff --git a/app/static/public-keys.txt b/app/static/public-keys.txt deleted file mode 100644 index 562797a..0000000 --- a/app/static/public-keys.txt +++ /dev/null @@ -1 +0,0 @@ -TODO: Add all the public keys we've used here for records keepins. \ No newline at end of file diff --git a/app/templates/index.njk b/app/templates/index.njk index a0baacb..6fafae6 100644 --- a/app/templates/index.njk +++ b/app/templates/index.njk @@ -103,7 +103,7 @@

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

See an example.

-

List of public keys we've used for signing.

+

Public keys we've used for signing.