github.com/cvmfs/docker-graphdriver@v0.0.0-20181206110523-155ec6df0521/provision/roles/docker-registry/templates/centos-apache-registry.conf.j2 (about) 1 <VirtualHost *:443> 2 SSLEngine on 3 SSLCertificateFile "{{ ssl_path_centos }}/certs/{{ ansible_fqdn }}.crt" 4 SSLCertificateKeyFile "{{ ssl_path_centos }}/private/{{ ansible_fqdn }}.key" 5 6 SSLCompression off 7 SSLProtocol all -SSLv2 -SSLv2 -SSLv3 -TLSv1 8 9 SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH 10 SSLHonorCipherOrder on 11 12 Header always set "Docker-Distribution-Api-Version" "registry/2.0" 13 Header onsuccess set "Docker-Distribution-Api-Version" "registry/2.0" 14 RequestHeader set X-Forwarded-Proto "https" 15 16 ProxyRequests off 17 ProxyPreserveHost on 18 19 20 ProxyPass "/v2" "http://localhost:5000/v2" 21 ProxyPassReverse "/v2" "http://localhost:5000/v2" 22 23 <Location /docker> 24 AuthName "Docker Registry Authentication" 25 AuthType basic 26 AuthUserFile "/opt/dockerhub/registry.htpasswd" 27 Require valid-user 28 </Location> 29 </VirtualHost>