dataset/seed/mailman/templates/config-nginx.conf

32 lines
1.4 KiB
Text
Raw Normal View History

2022-08-19 20:30:13 +02:00
charset utf-8;
client_max_body_size 75M;
location /mailman/postorius_static {
alias /usr/lib/python3.10/site-packages/postorius/static;
}
#FIXME user-profile seems to be in hyperkitty redirect in existing page
location /mailman/user-profile {
proxy_pass http://127.0.0.1:8002/postorius/users;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
2022-03-08 19:42:28 +01:00
%for %%location in ['accounts', 'admin', 'postorius']
2022-08-19 20:30:13 +02:00
location /mailman/%%location {
proxy_pass http://127.0.0.1:8002/%%location;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
2022-03-08 19:42:28 +01:00
%end for
2022-08-19 20:30:13 +02:00
location /mailman {
rewrite ^(/mailman/.*)$ /mailman/postorius/ permanent;
2022-03-08 19:42:28 +01:00
}