mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add httptester docker container files and update run_tests.sh to use ansible/httptester
This commit is contained in:
53
test/utils/docker/httptester/nginx.sites.conf
Normal file
53
test/utils/docker/httptester/nginx.sites.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen 443 ssl default_server;
|
||||
|
||||
server_name ansible.http.tests _;
|
||||
|
||||
ssl_certificate /root/ca/ansible.http.tests-cert.pem;
|
||||
ssl_certificate_key /root/ca/private/ansible.http.tests-key.pem;
|
||||
|
||||
location =/cacert.pem {
|
||||
alias /usr/share/nginx/html/cacert.pem;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name sni1.ansible.http.tests;
|
||||
|
||||
ssl_certificate /root/ca/sni1.ansible.http.tests-cert.pem;
|
||||
ssl_certificate_key /root/ca/private/sni1.ansible.http.tests-key.pem;
|
||||
|
||||
location / {
|
||||
return 200 "sni1.ansible.http.tests";
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
|
||||
server_name sni2.ansible.http.tests;
|
||||
|
||||
ssl_certificate /root/ca/sni2.ansible.http.tests-cert.pem;
|
||||
ssl_certificate_key /root/ca/private/sni2.ansible.http.tests-key.pem;
|
||||
|
||||
location / {
|
||||
return 200 "sni2.ansible.http.tests";
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name fail.ansible.http.tests;
|
||||
|
||||
rewrite /(.*) https://$host/$1 permanent;
|
||||
}
|
||||
Reference in New Issue
Block a user