Skip to content

Commit

Permalink
Merge pull request #13 from StudioCherry/support_https
Browse files Browse the repository at this point in the history
Added config item `protocol`.
  • Loading branch information
kn1cht committed Sep 20, 2018
2 parents fc5accb + 198e9ee commit c35f4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server: # your mediawiki server
"ja.wikipedia.org"
path: #your api.php path
"/w"
protocol: http # http or https
username: # your username
password: # your password
namespaces: # namespace id and prefix to process
Expand Down
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ const util = require('util');

/*** mediawiki API bot ***/
const bot = new nodemw({
server : config.server,
path : config.path,
protocol : config.protocol,
server : config.server,
path : config.path,
});

module.exports = main;
Expand Down

0 comments on commit c35f4c6

Please sign in to comment.