Small changes.
This commit is contained in:
parent
41fd5797b2
commit
9251a29c38
|
@ -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`.
|
3. head to the main folder and run `docker compose up`.
|
||||||
|
|
||||||
### Manual Setup (Linux/MacOS)
|
### Manual Setup (Linux/MacOS)
|
||||||
|
(Unstable for now.)
|
||||||
|
|
||||||
1. Make sure your MongoDB database and collection is up and running.
|
1. Make sure your MongoDB database and collection is up and running.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
const fs = require("fs");
|
|
||||||
|
|
||||||
module.exports.port = process.env.PORT || 5000;
|
module.exports.port = process.env.PORT || 5000;
|
||||||
module.exports.URI = process.env.MONGODB_URI || 'mongodb://localhost:27017';
|
module.exports.URI = process.env.MONGODB_URI || 'mongodb://localhost:27017';
|
||||||
module.exports.database = process.env.DB_NAME || 'sample_db';
|
module.exports.database = process.env.DB_NAME || 'sample_db';
|
||||||
|
|
|
@ -12,7 +12,7 @@ const client = new MongoClient(URI);
|
||||||
const db = client.db(database);
|
const db = client.db(database);
|
||||||
const list = db.collection(collection);
|
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)) {
|
if (!fs.existsSync(screenshotDirectory)) {
|
||||||
fs.mkdirSync(screenshotDirectory, { recursive: true });
|
fs.mkdirSync(screenshotDirectory, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
This is the archive storage.
|
This is the archive storage (For docker).
|
Ŝarĝante…
Reference in New Issue