-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yaml
57 lines (55 loc) · 1.85 KB
/
install.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
name: ddev-hxgui-pro
project_files:
- xhgui/collector/xhprof_prepend.php
- xhgui/config/app.php
- xhgui/config/nginx.conf
- config.xhgui-pro.yaml
- docker-compose.xhgui-pro.yaml
post_install_actions:
- |
#ddev-description: Cleanup the auto-prepend-file
rm -f xhprof/xhprof_prepend.php
- |
#ddev-description: Cleanup the profiler package
rm -rf $DDEV_APPROOT/profiler
- |
#ddev-description: Create the auto-prepend-file
echo "<?php" > xhprof/xhprof_prepend.php && tail -n +3 ./xhgui/collector/xhprof_prepend.php >> xhprof/xhprof_prepend.php
- |
#ddev-description: Create traefik config for xhgui
cat <<EOF >traefik/config/${DDEV_SITENAME}-xhgui-pro.yaml
#ddev-generated
http:
middlewares:
strip-hxgui-${DDEV_SITENAME}-prefix:
stripPrefix:
prefixes:
- "/xhgui"
forceSlash: false
routers:
${DDEV_SITENAME}-xhgui-ui-http:
rule: "Host(\`${DDEV_SITENAME}.${DDEV_TLD}\`) && PathPrefix(\`/xhgui\`)"
service: "${DDEV_SITENAME}-xhgui-ui"
tls: false
entryPoints:
- "http-80"
middlewares:
- "strip-hxgui-${DDEV_SITENAME}-prefix@file"
${DDEV_SITENAME}-xhgui-ui-https:
rule: "Host(\`${DDEV_SITENAME}.${DDEV_TLD}\`) && PathPrefix(\`/xhgui\`)"
service: "${DDEV_SITENAME}-xhgui-ui"
tls: true
entryPoints:
- "http-443"
middlewares:
- "strip-hxgui-${DDEV_SITENAME}-prefix@file"
services:
${DDEV_SITENAME}-xhgui-ui:
loadBalancer:
servers:
- url: "http://ddev-${DDEV_SITENAME}-xhgui-ui:80"
tls:
certificates:
- certFile: /mnt/ddev-global-cache/traefik/certs/${DDEV_SITENAME}.crt
keyFile: /mnt/ddev-global-cache/traefik/certs/${DDEV_SITENAME}.key
EOF