forked from 4training/pywikitools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.ini
66 lines (57 loc) · 2.4 KB
/
config.example.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Internal configuration: Please make sure the following options are set correctly
# Connection to the mediawiki system we want to work with
[mediawiki]
baseurl = https://www.4training.net
# base path in URLs: where to find index.php and api.php.
# this should have the same value as $wgScriptPath in LocalSettings.php of the mediawiki installation
scriptpath = /mediawiki
# We expect to find api.php at %(baseurl)s%(scriptpath)s/api.php (the same goes for index.php)
# Path for executables and scripts. Folders are expected to have a / at the end
[Paths]
#python = /usr/bin/python3 # optionally
pwb = ~/pywikibot/pwb.py
php = /usr/bin/php
base = ~/pywikitools/
worksheets = %(base)s/worksheets/
logs = %(base)s/logs/
temp = %(base)s/temp/
generateodtbot = %(base)s/pywikitools/generateodtbot.py
htmlexport = %(base)s/htmlexport/
[Dropbox]
# Dropbox configuration: OAuth access token and name of the main Dropbox folder we use
# see https://dropbox.tech/developers/generate-an-access-token-for-your-own-account
token = TODOLongOAuthToken
folder = /translatedfiles/
[translateodt]
# Should the script close all openoffice windows after finishing?
closeoffice = True
# Do we need to add --headless to the soffice call?
headless = False
[correctbot]
# Command to execute the mediawiki maintenance script runJobs.php to empty the job queue (needs also [Paths]/php)
# Comment this out if you don't want to run it (e.g. it can't be run because we're not on the server)
runjobs = /path/to/mediawiki/maintenance/runJobs.php
[generateodtbot]
# Optionally: log to files (will be relative to path defined in [Paths:logs] )
logfile = generateodt.log
debuglogfile = generateodt_debug.log
# Optionally: run script as a different user
#sudouser = username
# User names of up to two people that should receive notifications with debug logs
admin1 = tadmin
#admin2 = username
[resourcesbot]
# provide username and password
username = BotName
password = MySecretPassword
# resourcesbot writes language reports to [Paths:languagereports]
# Optionally: log to files (will be relative to path defined in [Paths:logs] )
# Three different verbosity levels (warning, info, debug)
logfile = resourcesbot.log
infologfile = resourcesbot_info.log
debuglogfile = resourcesbot_debug.log
[mediawiki2drupal]
# Configuration to write to the Drupal system using its JSON:API
endpoint = https://www.example.com/jsonapi/node/page
username = DrupalUserName
password = MySecretPassword