File tree Expand file tree Collapse file tree 5 files changed +16
-34
lines changed Expand file tree Collapse file tree 5 files changed +16
-34
lines changed Original file line number Diff line number Diff line change 2020 sudo apt-get autoremove
2121 sudo apt-get autoclean
2222 sudo rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld ~/.mysql_history
23+ - name : Remove and cleanup Nginx
24+ run : |
25+ sudo apt-get remove --purge nginx*
26+ sudo apt-get autoremove
27+ sudo apt-get autoclean
2328 - uses : actions/checkout@v2
2429 with :
2530 fetch-depth : 0
Original file line number Diff line number Diff line change @@ -2,19 +2,8 @@ site_uses_local_db: "{{ site_env.db_host == 'localhost' }}"
22nginx_wordpress_site_conf : wordpress-site.conf.j2
33nginx_ssl_path : " {{ nginx_path }}/ssl"
44
5- ssl_default_site :
6- no_default :
7- site_hosts :
8- - canonical : request.is.invalid
9- ssl :
10- enabled : true
11- provider : self-signed
12- multisite : {}
13-
145nginx_sites_confs :
156 - src : no-default.conf.j2
16- - src : ssl.no-default.conf.j2
17- enabled : " {{ sites_use_ssl }}"
187
198# HSTS defaults
209nginx_hsts_max_age : 31536000
Original file line number Diff line number Diff line change 1010 src : self-signed-openssl-config.j2
1111 dest : " {{ nginx_ssl_path }}/self-signed-openssl-configs/{{ item.key }}.cnf"
1212 mode : ' 0644'
13- with_dict : " {{ wordpress_sites | combine(ssl_default_site) }}"
13+ with_dict : " {{ wordpress_sites }}"
1414 when :
1515 - sites_use_ssl | bool
1616 - ssl_enabled | bool
2424 args :
2525 chdir : " {{ nginx_ssl_path }}"
2626 creates : " {{ item.key }}.*"
27- with_dict : " {{ wordpress_sites | combine(ssl_default_site) }}"
27+ with_dict : " {{ wordpress_sites }}"
2828 when :
2929 - sites_use_ssl | bool
3030 - ssl_enabled | bool
Original file line number Diff line number Diff line change @@ -12,3 +12,12 @@ server {
1212 listen 80 default_server deferred;
1313 return 444;
1414}
15+
16+ {% if sites_use_ssl %}
17+ server {
18+ listen [::]:443 ssl default_server deferred;
19+ listen 443 ssl default_server deferred;
20+
21+ ssl_reject_handshake on;
22+ }
23+ {% endif %}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments