Switch java-deptools to https
This commit is contained in:
parent
b58dfc3086
commit
6407f2e55f
3 changed files with 27 additions and 2 deletions
|
@ -30,4 +30,5 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- basessh
|
- basessh
|
||||||
|
- certbot
|
||||||
- java-deptools
|
- java-deptools
|
||||||
|
|
|
@ -1,8 +1,24 @@
|
||||||
|
ServerName java-deptools.fedorainfracloud.org
|
||||||
|
|
||||||
<Proxy *>
|
<Proxy *>
|
||||||
AddDefaultCharset off
|
AddDefaultCharset off
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
|
||||||
ProxyPass / http://localhost:9000/
|
<VirtualHost *:443>
|
||||||
ProxyPassReverse / http://localhost:9000/
|
SSLEngine on
|
||||||
|
SSLCertificateFile /etc/letsencrypt/live/java-deptools.fedorainfracloud.org/cert.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/java-deptools.fedorainfracloud.org/privkey.pem
|
||||||
|
SSLCertificateChainFile /etc/letsencrypt/live/java-deptools.fedorainfracloud.org/fullchain.pem
|
||||||
|
SSLHonorCipherOrder On
|
||||||
|
SSLCipherSuite RC4-SHA:AES128-SHA:ALL:!ADH:!EXP:!LOW:!MD5:!SSLV2:!NULL
|
||||||
|
SSLProtocol ALL -SSLv2
|
||||||
|
|
||||||
|
ProxyPass / http://localhost:9000/
|
||||||
|
ProxyPassReverse / http://localhost:9000/
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTPS} off
|
||||||
|
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- httpd
|
- httpd
|
||||||
|
- mod_ssl
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- postgresql
|
- postgresql
|
||||||
- java-deptools
|
- java-deptools
|
||||||
|
@ -65,6 +66,13 @@
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
|
||||||
|
- name: Obtain letsencrypt certificate
|
||||||
|
shell: certbot certonly -n --standalone --agree-tos -m sysadmin-koschei-members@fedoraproject.org -d {{ inventory_hostname }}
|
||||||
|
args:
|
||||||
|
creates: /etc/letsencrypt/live/{{ inventory_hostname }}/fullchain.pem
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Install proxy config
|
- name: Install proxy config
|
||||||
copy: src=proxy.conf dest=/etc/httpd/conf.d/java-deptools-proxy.conf
|
copy: src=proxy.conf dest=/etc/httpd/conf.d/java-deptools-proxy.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue