Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
77d29271
Commit
77d29271
authored
4 years ago
by
ynerant
Committed by
ynerant
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[mailman] Use multiple domains for mailman-web
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
parent
e242818a
No related branches found
Branches containing commit
No related tags found
1 merge request
!235
Mailman 3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
group_vars/mailman.yml
+3
-1
3 additions, 1 deletion
group_vars/mailman.yml
roles/mailman3/templates/mailman3/mailman-web.py.j2
+3
-3
3 additions, 3 deletions
roles/mailman3/templates/mailman3/mailman-web.py.j2
with
6 additions
and
4 deletions
group_vars/mailman.yml
+
3
−
1
View file @
77d29271
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
roles/mailman3/templates/mailman3/mailman-web.py.j2
+
3
−
3
View file @
77d29271
...
...
@@ -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_domain
s %}
"{{ domain }}",
{% endfor %}
]
# Mailman API credentials
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment