Attachment 'lm3o_nginx2.txt'
Download 1 # This is the nginx config for Mailman. This one redirects http to https.
2 # The critical stuff is the /static/ location and the proxy stuff
3 # for proxying to gunicorn at port 8000.
4
5 server {
6 listen 80 default_server;
7 # listen [::]:80 default_server ipv6only=on;
8
9 root /usr/share/nginx/html;
10 index index.html index.htm;
11
12 server_name lists.mailman3.org;
13
14 location / {
15 #proxy_pass http://127.0.0.1:8000/;
16 #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17 #proxy_set_header X-Forwarded-Host $host;
18 #proxy_set_header X-Forwarded-Server $host;
19 #proxy_set_header X-Forwarded-Proto $scheme;
20 #proxy_redirect off;
21 return 301 https://lists.mailman3.org$request_uri;
22 }
23
24 location /static/ {
25 alias /opt/mailman/mm/static/;
26 }
27
28 location /robots.txt {
29 alias /usr/share/nginx/html/robots.txt;
30 }
31
32 location /favicon.ico {
33 alias /var/www/listorg/images/favicon.ico;
34 }
35
36 }
37
38 server {
39 listen 443 default_server;
40 # listen [::]:443 default_server ipv6only=on;
41
42 root /usr/share/nginx/html;
43 index index.html index.htm;
44
45 server_name lists.mailman3.org;
46
47 ssl on;
48 ssl_certificate /etc/letsencrypt/live/lists.mailman3.org/fullchain.pem;
49 ssl_certificate_key /etc/letsencrypt/live/lists.mailman3.org/privkey.pem;
50
51 ssl_session_timeout 5m;
52
53 ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
54 ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
55 ssl_prefer_server_ciphers on;
56
57 location / {
58 proxy_pass http://127.0.0.1:8000/;
59 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
60 proxy_set_header X-Forwarded-Host $host;
61 proxy_set_header X-Forwarded-Server $host;
62 proxy_set_header X-Forwarded-Proto $scheme;
63 proxy_redirect off;
64 }
65
66 location /static/ {
67 alias /opt/mailman/mm/static/;
68 }
69
70 location /robots.txt {
71 alias /usr/share/nginx/html/robots.txt;
72 }
73
74 location /favicon.ico {
75 alias /var/www/listorg/images/favicon.ico;
76 }
77
78 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.