Commit 2ee63db Mauve Signweaver
committed
1 parent 58793b7 commit 2ee63db Copy full SHA for 2ee63db
File tree 5 files changed +30
-7
lines changed
ansible/roles/distributed_press
5 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ distributed_press_host: "localhost"
14
14
distributed_press_ipfs_provider : " builtin"
15
15
16
16
distributed_press_git_repo : " https://github.com/hyphacoop/api.distributed.press.git"
17
- distributed_press_git_branch : " v2.1.4 "
17
+ distributed_press_git_branch : " v2.1.6 "
18
18
distributed_press_source : " {{distributed_press_home}}/api.distributed.press"
19
19
20
20
distributed_press_domain : " example.com"
21
21
distributed_press_letsencrypt_email :
" [email protected] "
22
+ distributed_press_cert_name : " {{distributed_press_domain}}-0001"
22
23
23
24
# These will be used to be served over nginx along with letsencrypt certs
24
25
distributed_press_served_sites : []
Original file line number Diff line number Diff line change 183
183
- name : " Enable NGINX firewall"
184
184
shell : " ufw allow 'Nginx Full'"
185
185
186
+ - name : " Copy over default site config"
187
+ template :
188
+ src : nginx-default.j2
189
+ dest : " /etc/nginx/sites-enabled/default"
190
+
191
+ - name : " Copy over site config"
192
+ template :
193
+ src : nginx-site.j2
194
+ dest : " /etc/nginx/sites-enabled/{{distributed_press_domain}}"
195
+
196
+ - name : " Copy over social inbox site config"
197
+ when : social_inbox_enabled
198
+ template :
199
+ src : nginx-social-site.j2
200
+ dest : " /etc/nginx/sites-enabled/{{social_inbox_domain}}"
201
+
202
+ - name : " Copy over static site configs"
203
+ template :
204
+ src : nginx-static.j2
205
+ dest : " /etc/nginx/sites-enabled/{{item}}"
206
+ loop : " {{distributed_press_served_sites}}"
207
+
186
208
- name : " Reload NGINX"
187
209
systemd :
188
210
daemon_reload : true
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ server {
34
34
35
35
listen [::]:443 ssl ipv6only=on; # managed by Certbot
36
36
listen 443 ssl; # managed by Certbot
37
- ssl_certificate /etc/letsencrypt/live/{{distributed_press_domain }}/fullchain.pem; # managed by Certbot
38
- ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_domain }}/privkey.pem; # managed by Certbot
37
+ ssl_certificate /etc/letsencrypt/live/{{distributed_press_cert_name }}/fullchain.pem; # managed by Certbot
38
+ ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_cert_name }}/privkey.pem; # managed by Certbot
39
39
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
40
40
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
41
41
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ server {
37
37
38
38
listen [::]:443 ssl; # managed by Certbot
39
39
listen 443 ssl; # managed by Certbot
40
- ssl_certificate /etc/letsencrypt/live/{{distributed_press_domain }}/fullchain.pem; # managed by Certbot
41
- ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_domain }}/privkey.pem; # managed by Certbot
40
+ ssl_certificate /etc/letsencrypt/live/{{distributed_press_cert_name }}/fullchain.pem; # managed by Certbot
41
+ ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_cert_name }}/privkey.pem; # managed by Certbot
42
42
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
43
43
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
44
44
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ server {
36
36
37
37
listen [::]:443 ssl; # managed by Certbot
38
38
listen 443 ssl; # managed by Certbot
39
- ssl_certificate /etc/letsencrypt/live/{{distributed_press_domain }}/fullchain.pem; # managed by Certbot
40
- ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_domain }}/privkey.pem; # managed by Certbot
39
+ ssl_certificate /etc/letsencrypt/live/{{distributed_press_cert_name }}/fullchain.pem; # managed by Certbot
40
+ ssl_certificate_key /etc/letsencrypt/live/{{distributed_press_cert_name }}/privkey.pem; # managed by Certbot
41
41
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
42
42
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
43
43
}
You can’t perform that action at this time.
0 commit comments