forked from Catrobat/ScratchToCatrobat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.ini
executable file
·151 lines (124 loc) · 7.39 KB
/
default.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
;-------------------------------------------------------------------------------
[APPLICATION]
name: Scratch2Catrobat Converter
short_name: S2CC
version: 0.10.0
build_name: Aegean cat
build_number: 985
;-------------------------------------------------------------------------------
[CATROBAT]
; TODO: update this field manually every time the hierarchy changes
catrobat_language_version: 0.996
file_extension: .catrobat
automatic_screenshot_file_name: automatic_screenshot.png
media_license_url: http://developer.catrobat.org/ccbysa_v3 ; used for XML Header
program_license_url: http://developer.catrobat.org/agpl_v3 ; used for XML Header
;-------------------------------------------------------------------------------
[CATROID]
repository_owner: Catrobat
repository_name: Catroid
repository_api_show_tags_url: https://api.github.com/repos/%(repository_owner)s/%(repository_name)s/releases/latest
; TODO: update this field manually every time the hierarchy changes
; => should be updated automatically by SourceCodeFilter in future times
tag_name_of_used_hierarchy: v0.9.32
;-------------------------------------------------------------------------------
[SCRATCH]
device_name: Scratch
platform: Scratch
platform_version: 2.0
code_file_name: project.json
;-------------------------------------------------------------------------------
[PATHS]
jython_home: /usr/jython
jython_exec: %(jython_home)s/bin/jython
batik_home: ${LIB_PATH}/batik-1.7
data: ${APP_PATH}/data
logging: %(data)s/log
output: %(data)s/output
web_output: %(data)s/web_output
tmp: %(data)s/tmp
jython_standalone_jar: %(jython_home)s/jython.jar
class: ${LIB_PATH}
jython: ${SRC_PATH}/scratchtocatrobat:${LIB_PATH}/jsoup-1.8.3.jar:${LIB_PATH}/catroid_class_hierarchy.jar:${LIB_PATH}/xmlpull-1.1.3.1.jar:${LIB_PATH}/xpp3_min-1.1.4c.jar:${LIB_PATH}/xstream-1.4.7.jar:${SRC_PATH}:${LIB_PATH}/batik-1.7/batik-rasterizer.jar:${LIB_PATH}/batik-1.7/lib/batik-anim.jar:${LIB_PATH}/batik-1.7/lib/batik-awt-util.jar:${LIB_PATH}/batik-1.7/lib/batik-bridge.jar:${LIB_PATH}/batik-1.7/lib/batik-codec.jar:${LIB_PATH}/batik-1.7/lib/batik-css.jar:${LIB_PATH}/batik-1.7/lib/batik-dom.jar:${LIB_PATH}/batik-1.7/lib/batik-ext.jar:${LIB_PATH}/batik-1.7/lib/batik-extension.jar:${LIB_PATH}/batik-1.7/lib/batik-gui-util.jar:${LIB_PATH}/batik-1.7/lib/batik-gvt.jar:${LIB_PATH}/batik-1.7/lib/batik-parser.jar:${LIB_PATH}/batik-1.7/lib/batik-script.jar:${LIB_PATH}/batik-1.7/lib/batik-svg-dom.jar:${LIB_PATH}/batik-1.7/lib/batik-svggen.jar:${LIB_PATH}/batik-1.7/lib/batik-swing.jar:${LIB_PATH}/batik-1.7/lib/batik-transcoder.jar:${LIB_PATH}/batik-1.7/lib/batik-util.jar:${LIB_PATH}/batik-1.7/lib/batik-xml.jar:${LIB_PATH}/batik-1.7/lib/js.jar:${LIB_PATH}/batik-1.7/lib/make-squiggle-app.sh:${LIB_PATH}/batik-1.7/lib/pdf-transcoder.jar:${LIB_PATH}/batik-1.7/lib/xalan-2.6.0.jar:${LIB_PATH}/batik-1.7/lib/xerces_2_5_0.jar:${LIB_PATH}/batik-1.7/lib/xml-apis-ext.jar:${LIB_PATH}/batik-1.7/lib/xml-apis.jar
;-------------------------------------------------------------------------------
[LOG]
file_log_level: DEBUG
file_log_format: %\(asctime)s %\(levelname)-8s %\(message)s (%\(filename)s:%\(lineno)s)
stdout_log_level: INFO
stdout_log_format: %\(asctime)s %\(levelname)-8s %\(message)s
;-------------------------------------------------------------------------------
[MEDIA_CONVERTER]
max_concurrent_threads: 8
;-------------------------------------------------------------------------------
[SCRATCH_API]
project_base_url: https://scratch.mit.edu/projects/
; NOTE: without "projects." because svg files are not available with this domain
; source: http://wiki.scratch.mit.edu/wiki/Scratch_File_Format_%282.0%29#Using_HTTP_requests
internal_assets_base_url: http://cdn.assets.scratch.mit.edu/internalapi ; https://scratch.mit.edu/internalapi
internal_project_base_url: https://projects.scratch.mit.edu
asset_url_template: %(internal_assets_base_url)s/asset/{}/get/
project_url_template: %(internal_project_base_url)s/{}
project_remix_tree_url_template: %(project_base_url)s{}/remixtree/bare/
project_image_base_url: https://uploads.scratch.mit.edu/projects/thumbnails/
project_meta_data_base_url: https://api.scratch.mit.edu/projects/
; http client settings
; total_delay_timeout = 1/60 * sum(0 < i <= http_retries)(http_backoff^i)
user_agent: Scratch2Catrobat Converter
http_max_concurrent_downloads: 7
http_max_redirects: 10
http_retries: 5
http_backoff: 2
http_delay: 2
http_timeout: 20000 ; http timeout in ms
;-------------------------------------------------------------------------------
[CONVERTER_API]
max_num_remixes_to_include: 10
;-------------------------------------------------------------------------------
[WEBSERVER]
port: 80
max_wait_seconds_before_shutdown: 3
debug: False
cookie_secret: __TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__
xsrf_cookies: True ; unused at the moment since we don't submit html forms via POST requests (Maybe we need this in the future!)
;-------------------------------------------------------------------------------
[JOBMONITOR_SERVER]
host: localhost ; change this in production mode
port: 20000 ; change this in production mode
certificate_path: ${APP_PATH}/web/certificates/server.crt
certificate_key_path: ${APP_PATH}/web/certificates/server.key
download_dir: ${APP_PATH}/web/downloads/
max_stream_buffer_size: 104857600 ; 100MB (in bytes)
max_input_buffer_size: 8388608 ; 8MB (in bytes); should be << max_socket_buffer_size
connection_timeout: 10800.0 ; 3 hours (in seconds); must be >= check_zombie_interval
check_zombie_interval: 600 ; 10 minutes (in seconds)
;read_chunk_size: 1024
allowed_auth_keys.1.host: test1.example.com
allowed_auth_keys.1.key: __TODO:_INSERT_YOUR_SERVER_KEY_HERE__
allowed_auth_keys.2.host: test2.example.com
allowed_auth_keys.2.key: __TODO:_INSERT_YOUR_SERVER_KEY_HERE__
;-------------------------------------------------------------------------------
[REDIS]
host: localhost
port: 6379
password:
;-------------------------------------------------------------------------------
[CONVERTER_JOB]
max_num_scheduled_jobs_per_client: 3
auth_key: __TODO:_INSERT_YOUR_CLIENT_KEY_HERE__
listening_queues.1.name: high
listening_queues.2.name: normal
listening_queues.3.name: low
listening_queues.4.name: default
buffer_size: 1048576 ; 1MB
max_wait_seconds_before_shutdown: 3
timeout: 6000 ; 100min
;-------------------------------------------------------------------------------
[MAIL]
; SMTP related variables
smtp_host: smtp.gmail.com
smtp_port: 465
smtp_from: <gmail_user_name>
; Template assumes smtp_pwd is encrypted. Use base64.b64encode() to encrypt...
smtp_pwd: <encrypted_password>
; Use a list, even if sending to a single user
smtp_send_to: ['user1@email.com', 'user2@email.com']