mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Changes to the httptester docker image to support new client cert functionality in tests (#19912)
* Fix Dockerfile * Add changes to docker image to support new client cert functionality * Update repo:tag for docker
This commit is contained in:
@@ -7,10 +7,25 @@ server {
|
||||
ssl_certificate /root/ca/ansible.http.tests-cert.pem;
|
||||
ssl_certificate_key /root/ca/private/ansible.http.tests-key.pem;
|
||||
|
||||
ssl_client_certificate /root/ca/cacert.pem;
|
||||
ssl_verify_client optional;
|
||||
|
||||
location =/cacert.pem {
|
||||
alias /usr/share/nginx/html/cacert.pem;
|
||||
}
|
||||
|
||||
location =/client.key {
|
||||
alias /usr/share/nginx/html/client.key;
|
||||
}
|
||||
|
||||
location =/client.pem {
|
||||
alias /usr/share/nginx/html/client.pem;
|
||||
}
|
||||
|
||||
location =/ssl_client_verify {
|
||||
return 200 "ansible.http.tests:$ssl_client_verify";
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user