[mailman] Use multiple domains for mailman-web
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									e242818ae9
								
							
						
					
					
						commit
						77d292713f
					
				| 
						 | 
				
			
			@ -74,6 +74,8 @@ glob_mailman3:
 | 
			
		|||
  restadmin_pass: "{{ vault.mailman3_restadmin_pass }}"
 | 
			
		||||
  archiver_key: "{{ vault.mailman3_archiver_key }}"
 | 
			
		||||
  web_secret_key: "{{ vault.mailman3_web_secret_key }}"
 | 
			
		||||
  web_domain: "mailman.crans.org"
 | 
			
		||||
  web_domains:
 | 
			
		||||
    - "mailman.crans.org"
 | 
			
		||||
    - "lists.crans.org"
 | 
			
		||||
  default_domain: "crans.org"
 | 
			
		||||
  postfix_domain: "crans.org"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,9 +16,9 @@ ADMINS = (
 | 
			
		|||
# is meant to run behind a webserver reverse proxy anyway.
 | 
			
		||||
ALLOWED_HOSTS = [
 | 
			
		||||
    "localhost",  # Archiving API from Mailman, keep it.
 | 
			
		||||
    "{{ mailman3.web_domain }}",
 | 
			
		||||
    # Add here all production URLs you may have.
 | 
			
		||||
    #'*'
 | 
			
		||||
{% for domain in mailman3.web_domains %}
 | 
			
		||||
    "{{ domain }}",
 | 
			
		||||
{% endfor %}
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
# Mailman API credentials
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue