File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ mailman3_core_api_hostname: localhost
122
122
mailman3_core_api_port : 8001
123
123
mailman3_core_api_admin_user : restadmin
124
124
mailman3_core_api_admin_pass : restpass
125
+ mailman3_core_public_rest_api : false
125
126
126
127
# Using the default archiver secret key is not secure, generate a random key!
127
128
mailman3_archiver_key : SecretArchiverAPIKey
Original file line number Diff line number Diff line change 29
29
dest : /etc/nginx/sites-enabled/default
30
30
state : absent
31
31
notify : Restart nginx
32
+
33
+ - name : Install certbot
34
+ community.general.snap :
35
+ name : certbot
36
+ classic : true
Original file line number Diff line number Diff line change 5
5
changed_when : false
6
6
7
7
- name : Set line in /etc/hosts
8
+ when : mailman3_core_public_rest_api
8
9
ansible.builtin.lineinfile :
9
10
path : /etc/hosts
10
11
regexp : " {{ inventory_hostname }}"
11
12
line : " {{ ansible_default_ipv4.address | default(ansible_all_ipv4_addresses[0]) }} {{ inventory_hostname }} {{ ansible_hostname }}"
12
13
owner : root
13
14
group : root
14
15
mode : ' 0644'
16
+
17
+ - name : Set line in /etc/hosts 127.0.1.1
18
+ when : not mailman3_core_public_rest_api
19
+ ansible.builtin.lineinfile :
20
+ path : /etc/hosts
21
+ regexp : " {{ inventory_hostname }}"
22
+ line : " 127.0.1.1 {{ inventory_hostname }} {{ ansible_hostname }}"
23
+ owner : root
24
+ group : root
25
+ mode : ' 0644'
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ upstream myapp {
3
3
server unix:/run/mailman3-web.sock;
4
4
}
5
5
6
- # This localhost vhost was needed for a process, before. Was it imports ?
7
- # Add a comment about the reasons.
6
+ # Perhaps for elasticsearch ?
7
+ # Or for core to communicate to hyperkitty on localhost
8
8
9
9
server {
10
10
listen 80;
You can’t perform that action at this time.
0 commit comments