Merge pull request #245 from Hornwitser/ease-installation

Ease installation
This commit is contained in:
Hornwitser authored and GitHub committed 2019-10-13 14:48:30 +02:00
commit 61b1b1a106
3 files changed
+8 -5

No files matched your search

+5 -4
View File
@@ -95,7 +95,7 @@ NodeJS does not support EOL ubuntu releases. Make sure you are on the most recen
Master and all slaves:
wget -O - https://deb.nodesource.com/setup_10.x | sudo -E bash -
wget -qO - https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs python-dev git build-essential
git clone -b 1.2.x https://github.com/Danielv123/factorioClusterio.git
cd factorioClusterio
@@ -122,11 +122,12 @@ Pretty much all the blank fields should be filled in, except on the master where
**Master**
node master.js
Or with pm2 (it's recommened to run it without pm2 first):
pm2 start master.js --name master
OR
node master.js
**Server Host**
+2
View File
@@ -53,6 +53,8 @@ if(!config.masterAuthToken || typeof config.masterAuthToken !== "string"){
console.error("Master server now needs an access token for write operations. As clusterio slaves depends \
upon this, please add your token to config.json in the field named masterAuthToken. \
You can retrieve your auth token from the master in secret-api-token.txt after running it once.");
process.exitCode = 1;
return;
}
const needleOptionsWithTokenAuthHeader = {
compressed:true,
+1 -1
View File
@@ -14,7 +14,7 @@
"masterPort": 8080,
"__commentsslPort": "HTTPS port for the master to listen to. Set to 0 or an empty string to not listen for HTTPS.",
"sslPort": 443,
"sslPort": 0,
"sslCert": "database/certificates/cert.crt",
"sslPrivKey": "database/certificates/cert.key",