Skip to content

Commit 0ff71f2

Browse files
committed
feat: add possibility to use custom CA with XO
1 parent 92f584e commit 0ff71f2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ services:
111111
# mount certificate files to container if HTTPS is set with cert/key paths
112112
#- /path/to/cert.pem:/cert.pem
113113
#- /path/to/cert.key:/cert.key
114+
# mount your custom CA to container if host certificates are issued by it and you want XO to trust it
115+
#- /path/to/ca.pem:/host-ca.pem
114116
# logging
115117
logging: &default_logging
116118
driver: "json-file"

conf/monit-services

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set httpd port 2812 and
44

55
check process xo-server with pidfile /var/run/xo-server.pid
66
depends on redis
7-
start program = "/usr/local/bin/forever start -a --pidFile /var/run/xo-server.pid --sourceDir /etc/xen-orchestra/packages/xo-server -l /var/log/xo-server.log dist/cli.mjs"
7+
start program = "/usr/bin/env NODE_EXTRA_CA_CERTS=/host-ca.pem /usr/local/bin/forever start -a --pidFile /var/run/xo-server.pid --sourceDir /etc/xen-orchestra/packages/xo-server -l /var/log/xo-server.log dist/cli.mjs"
88
stop program = "/usr/local/bin/forever stop /etc/xen-orchestra/packages/xo-server/dist/cli.mjs"
99

1010
check process redis with pidfile /var/run/redis.pid

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ services:
3030
# mount certificate files to container if HTTPS is set with cert/key paths
3131
#- /path/to/cert.pem:/cert.pem
3232
#- /path/to/cert.key:/cert.key
33+
# mount your custom CA to container if host certificates are issued by it and you want XO to trust it
34+
#- /path/to/ca.pem:/host-ca.pem
3335
# logging
3436
logging: &default_logging
3537
driver: "json-file"

0 commit comments

Comments
 (0)