File tree 5 files changed +16
-34
lines changed
5 files changed +16
-34
lines changed Original file line number Diff line number Diff line change 20
20
sudo apt-get autoremove
21
21
sudo apt-get autoclean
22
22
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
23
28
- uses : actions/checkout@v2
24
29
with :
25
30
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' }}"
2
2
nginx_wordpress_site_conf : wordpress-site.conf.j2
3
3
nginx_ssl_path : " {{ nginx_path }}/ssl"
4
4
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
-
14
5
nginx_sites_confs :
15
6
- src : no-default.conf.j2
16
- - src : ssl.no-default.conf.j2
17
- enabled : " {{ sites_use_ssl }}"
18
7
19
8
# HSTS defaults
20
9
nginx_hsts_max_age : 31536000
Original file line number Diff line number Diff line change 10
10
src : self-signed-openssl-config.j2
11
11
dest : " {{ nginx_ssl_path }}/self-signed-openssl-configs/{{ item.key }}.cnf"
12
12
mode : ' 0644'
13
- with_dict : " {{ wordpress_sites | combine(ssl_default_site) }}"
13
+ with_dict : " {{ wordpress_sites }}"
14
14
when :
15
15
- sites_use_ssl | bool
16
16
- ssl_enabled | bool
24
24
args :
25
25
chdir : " {{ nginx_ssl_path }}"
26
26
creates : " {{ item.key }}.*"
27
- with_dict : " {{ wordpress_sites | combine(ssl_default_site) }}"
27
+ with_dict : " {{ wordpress_sites }}"
28
28
when :
29
29
- sites_use_ssl | bool
30
30
- ssl_enabled | bool
Original file line number Diff line number Diff line change @@ -12,3 +12,12 @@ server {
12
12
listen 80 default_server deferred;
13
13
return 444;
14
14
}
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