-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.example.ini
82 lines (71 loc) · 3.09 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Internal configuration: Please make sure the following options are set correctly
# The [Paths] section contains general configuration, the other sections have
# all settings specific to that bot / script
# Path for executables and scripts. Folders are expected to have a / at the end
[Paths]
php = /usr/bin/php
base = /home/USERNAME/pywikitools/
worksheets = %(base)s/worksheets/
logs = %(base)s/logs/
temp = %(base)s/temp/
htmlexport = %(base)s/htmlexport/
pdfexport = %(base)s/pdfexport/
[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]
# Which mediawiki environment do we read from? 4training, test or local (see family.py)
site = local
# Should the script close all openoffice windows after finishing?
closeoffice = True
# Do we need to add --headless to the soffice call?
headless = False
[correctbot]
# Which environment do we connect to? 4training, test or local (see family.py)
site = local
# We will make changes in the environment as the following user:
username = 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]
# Which mediawiki environment do we read from? 4training, test or local (see family.py)
site = local
# We will login as the following user: (to send email notifications)
username = GenerateOdtBot
# Optionally: log to files (will be relative to path defined in [Paths:logs] )
logfile = generateodt.log
debuglogfile = generateodt_debug.log
# User name of admin to receive email notification with debug logs
admin = admin
[resourcesbot]
# Which environment do we connect to? 4training, test or local (see family.py)
site = local
# We will make changes in the environment as the following user:
username = ResourcesBot
# password is needed to mark updated language information pages for translation
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]
# Which mediawiki environment do we read from? See family.py
site = 4training
# Configuration to write to the Drupal system using its JSON:API
endpoint = https://www.example.com/jsonapi/node/page
username = DrupalUserName
password = MySecretPassword
[autotranslate]
# Which environment do we connect to (see family.py)? Don't use 4training
# as we don't want unchecked automatic translations on the live site
site = local
# We will make changes in the environment as the following user:
username = AutoTranslateBot
# DeepL configuration
deeplendpoint = https://api-free.deepl.com/v2/translate
deeplapikey = MySecretDeepLAPIKey