-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yaml
58 lines (52 loc) · 2.04 KB
/
config.yaml
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
parameters:
htmltopdf_path: '/usr/bin/chromium' # MacOs: /Applications/Chromium.app/Contents/MacOS/Chromium
htmltopdf_service_url: '' # Should be a complete url like https://example.org/yeswiki/?PagePrincipale/pdf
# duration before considering the pageload completed (60000ms = 1 minute)
page_load_timeout: 60000
# Advanced Configuration
# Has to comply with HeadlessChromium::createBrowser() options
# See https://github.com/chrome-php/headless-chromium-php#options
htmltopdf_options:
windowSize: [1920, 1080]
noSandbox: true
headless: true
userAgent: 'YesWiki/4.0'
# maximum time to wait for the browser to start, before navigating to a page
startupTimeout: 30
# maximum time in ms to wait for synchronous messages to send to the browser
sendSyncDefaultTimeout: 10000
customFlags:
- '--crash-dumps-dir=/tmp'
- '--remote-allow-origins=*' # try to be more compatible with chromium 111 and +
# uncomment to view browser logs in PHP/Apache logs
# debugLogger: 'php://stdout'
# Advanced Configuration
# if you want to propose this website as a service for other domains
htmltopdf_service_authorized_domains:
# - 'example.org'
# - 'another-one.com'
# Advanced Configuration
# Configure this when the HTTP server does not have access to the YesWiki via its public URL.
#
# Eg, if Docker/base_url is https://example.com/? and Apache runs as http://localhost:8000,
# … then `htmltopdf_base_url` value should be `http://localhost:8000/?`.
# Use cases: reverse-proxy, within a YesWiki Docker container.
htmltopdf_base_url: ~
#htmltopdf_base_url: http://localhost:8000/?
#
# for edit config action
publication_editable_config_params:
- 'htmltopdf_path'
- 'htmltopdf_options':
- windowSize
- userAgent
- 'htmltopdf_service_authorized_domains'
- 'htmltopdf_service_url'
services:
_defaults:
autowire: true
public: true
YesWiki\Publication\Service\:
resource: 'services/*'
YesWiki\Publication\Controller\:
resource: 'controllers/*'