mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Site url variable and typo fix
This commit is contained in:
parent
7edce016b5
commit
e6cc17ebb9
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ const utils = require('./utils.js');
|
||||||
const actions = require('./actions.js');
|
const actions = require('./actions.js');
|
||||||
const stat = require('./stat.js');
|
const stat = require('./stat.js');
|
||||||
|
|
||||||
const siteUrl = "http://localhost:8080"; // http(s)//asd.basd
|
const siteUrl = "https://questionmining.tk"; // http(s)//asd.basd
|
||||||
const recivedFiles = "public/recivedfiles";
|
const recivedFiles = "public/recivedfiles";
|
||||||
const motdFile = "public/motd";
|
const motdFile = "public/motd";
|
||||||
const staticFile = "public/data/static";
|
const staticFile = "public/data/static";
|
||||||
|
@ -49,7 +49,7 @@ const fullchainFile = "/etc/letsencrypt/live/questionmining.tk/fullchain.pem";
|
||||||
const chainFile = "/etc/letsencrypt/live/questionmining.tk/chain.pem";
|
const chainFile = "/etc/letsencrypt/live/questionmining.tk/chain.pem";
|
||||||
|
|
||||||
var certsLoaded = false;
|
var certsLoaded = false;
|
||||||
if (utils.FileExists(privkeyFile) && utils.FileExists(fullchainFile) && utils.FileExistsc(chainFile)) {
|
if (utils.FileExists(privkeyFile) && utils.FileExists(fullchainFile) && utils.FileExists(chainFile)) {
|
||||||
const key = fs.readFileSync(privkeyFile, "utf8");
|
const key = fs.readFileSync(privkeyFile, "utf8");
|
||||||
const cert = fs.readFileSync(fullchainFile, "utf8");
|
const cert = fs.readFileSync(fullchainFile, "utf8");
|
||||||
const ca = fs.readFileSync(chainFile, "utf8");
|
const ca = fs.readFileSync(chainFile, "utf8");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue