mirror of https://github.com/calzoneman/sync.git
Added in ability to change mysql port
This commit is contained in:
parent
406717bb18
commit
efb9d30de0
|
@ -5,6 +5,7 @@
|
||||||
# password: password for user
|
# password: password for user
|
||||||
mysql:
|
mysql:
|
||||||
server: 'localhost'
|
server: 'localhost'
|
||||||
|
port: 3306
|
||||||
database: 'cytube3'
|
database: 'cytube3'
|
||||||
user: 'cytube3'
|
user: 'cytube3'
|
||||||
password: ''
|
password: ''
|
||||||
|
|
|
@ -8,9 +8,10 @@ var YAML = require("yamljs");
|
||||||
var defaults = {
|
var defaults = {
|
||||||
mysql: {
|
mysql: {
|
||||||
server: "localhost",
|
server: "localhost",
|
||||||
|
port: 3306,
|
||||||
database: "cytube3",
|
database: "cytube3",
|
||||||
user: "cytube3",
|
user: "cytube3",
|
||||||
password: ""
|
password: "",
|
||||||
},
|
},
|
||||||
listen: [
|
listen: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@ var global_ipbans = {};
|
||||||
module.exports.init = function () {
|
module.exports.init = function () {
|
||||||
pool = mysql.createPool({
|
pool = mysql.createPool({
|
||||||
host: Config.get("mysql.server"),
|
host: Config.get("mysql.server"),
|
||||||
|
port: Config.get("mysql.port"),
|
||||||
user: Config.get("mysql.user"),
|
user: Config.get("mysql.user"),
|
||||||
password: Config.get("mysql.password"),
|
password: Config.get("mysql.password"),
|
||||||
database: Config.get("mysql.database"),
|
database: Config.get("mysql.database"),
|
||||||
|
|
Loading…
Reference in New Issue