Switch java-deptools from certbot to mod_md
This commit is contained in:
parent
17bff1a6ef
commit
ccdce84c87
3 changed files with 5 additions and 15 deletions
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- java-deptools
|
- java-deptools
|
||||||
- certbot
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- httpd
|
- httpd
|
||||||
|
- mod_md
|
||||||
- mod_ssl
|
- mod_ssl
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- postgresql
|
- postgresql
|
||||||
|
@ -74,13 +75,6 @@
|
||||||
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
|
||||||
template: src=proxy.conf.j2 dest=/etc/httpd/conf.d/java-deptools-proxy.conf
|
template: src=proxy.conf.j2 dest=/etc/httpd/conf.d/java-deptools-proxy.conf
|
||||||
notify:
|
notify:
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
|
MDomain {{ inventory_hostname }}
|
||||||
ServerName {{ inventory_hostname }}
|
ServerName {{ inventory_hostname }}
|
||||||
|
ServerAdmin mizdebsk@fedoraproject.org
|
||||||
|
MDCertificateAgreement https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
|
||||||
|
MDRequireHttps temporary
|
||||||
|
|
||||||
<Proxy *>
|
<Proxy *>
|
||||||
AddDefaultCharset off
|
AddDefaultCharset off
|
||||||
|
@ -8,9 +12,6 @@ ServerName {{ inventory_hostname }}
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /etc/letsencrypt/live/{{ inventory_hostname }}/cert.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/{{ inventory_hostname }}/privkey.pem
|
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/{{ inventory_hostname }}/fullchain.pem
|
|
||||||
SSLHonorCipherOrder On
|
SSLHonorCipherOrder On
|
||||||
SSLCipherSuite {{ ssl_ciphers }}
|
SSLCipherSuite {{ ssl_ciphers }}
|
||||||
SSLProtocol {{ ssl_protocols }}
|
SSLProtocol {{ ssl_protocols }}
|
||||||
|
@ -18,7 +19,3 @@ ServerName {{ inventory_hostname }}
|
||||||
ProxyPass / http://localhost:9000/
|
ProxyPass / http://localhost:9000/
|
||||||
ProxyPassReverse / http://localhost:9000/
|
ProxyPassReverse / http://localhost:9000/
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{HTTPS} off
|
|
||||||
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue