40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
nginx:
|
|
upstreams:
|
|
"internal-mailman3-web":
|
|
server:
|
|
- address: "localhost:15427"
|
|
"internal-mailman3-api":
|
|
server:
|
|
- address: "{{ mailman.api.hostname }}:{{ mailman.api.port }}"
|
|
"internal-mailman3-uwsgi":
|
|
server:
|
|
- address: "unix:/run/mailman3-web/uwsgi.sock"
|
|
vhosts:
|
|
"internal-mailman3-web":
|
|
listen:
|
|
ssl: False
|
|
nossl: True
|
|
nossl_port: 15427
|
|
letsencrypt: False
|
|
locations:
|
|
- match: /
|
|
custom:
|
|
- uwsgi_pass internal-mailman3-uwsgi
|
|
- include uwsgi_params
|
|
- match: ~ ^/(accounts|admin)/login/
|
|
custom:
|
|
- uwsgi_pass internal-mailman3-uwsgi
|
|
- include uwsgi_params
|
|
- uwsgi_param REMOTE_USER $http_REMOTE_USER
|
|
- match: /mailman3/static/CACHE # Used by Hyperkitty
|
|
alias: /var/lib/mailman3/web/static/CACHE
|
|
- match: /mailman3/static/django-mailman3
|
|
alias: /usr/share/python3-django-mailman3
|
|
- match: /mailman3/static/postorius
|
|
alias: /usr/share/python3-django-postorius/static/postorius
|
|
- match: /mailman3/static/hyperkitty
|
|
alias: /usr/share/python3-django-hyperkitty/static/hyperkitty
|
|
- match: /avatar/
|
|
alias: /usr/share/python3-django-hyperkitty/static/hyperkitty/img/
|
|
custom:
|
|
- try_files participant.png participant.png
|