Custom certs per role
- Upload the cert with `sshkit.upload!` - Use the role name to create a directory for each role's certs - Add an integration test for the custom certs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
service: app_with_custom_certificate
|
||||
image: app_with_custom_certificate
|
||||
servers:
|
||||
web:
|
||||
hosts:
|
||||
- vm1
|
||||
- vm2
|
||||
workers:
|
||||
hosts:
|
||||
- vm3
|
||||
cmd: sleep infinity
|
||||
deploy_timeout: 2
|
||||
drain_timeout: 2
|
||||
readiness_delay: 0
|
||||
|
||||
proxy:
|
||||
host: localhost
|
||||
ssl:
|
||||
certificate_pem: CUSTOM_CERT
|
||||
private_key_pem: CUSTOM_KEY
|
||||
healthcheck:
|
||||
interval: 1
|
||||
timeout: 1
|
||||
path: "/up"
|
||||
|
||||
asset_path: /usr/share/nginx/html/versions
|
||||
|
||||
registry:
|
||||
server: registry:4443
|
||||
username: root
|
||||
password: root
|
||||
builder:
|
||||
driver: docker
|
||||
arch: <%= Kamal::Utils.docker_arch %>
|
||||
args:
|
||||
COMMIT_SHA: <%= `git rev-parse HEAD` %>
|
||||
Reference in New Issue
Block a user