Small changes.

This commit is contained in:
Daniel 2022-06-20 23:59:22 +04:30
parent 41fd5797b2
commit 9251a29c38
4 changed files with 3 additions and 4 deletions

View File

@ -47,6 +47,7 @@ The objective is to have a self-hosted place to keep useful links in one place,
3. head to the main folder and run `docker compose up`.
### Manual Setup (Linux/MacOS)
(Unstable for now.)
1. Make sure your MongoDB database and collection is up and running.

View File

@ -1,5 +1,3 @@
const fs = require("fs");
module.exports.port = process.env.PORT || 5000;
module.exports.URI = process.env.MONGODB_URI || 'mongodb://localhost:27017';
module.exports.database = process.env.DB_NAME || 'sample_db';

View File

@ -12,7 +12,7 @@ const client = new MongoClient(URI);
const db = client.db(database);
const list = db.collection(collection);
// Create the storage directories if they do ot exist
// Create the storage directories if they do not exist
if (!fs.existsSync(screenshotDirectory)) {
fs.mkdirSync(screenshotDirectory, { recursive: true });
}

View File

@ -1 +1 @@
This is the archive storage.
This is the archive storage (For docker).