Attachment 'lm3o_nginx.txt'

Download

   1 # This is the nginx config for Mailman. The configs for http and https
   2 # are essentially the same except for the added SSL stuff for https.
   3 # The critical stuff is the /static/ location and the proxy stuff
   4 # for proxying to gunicorn at port 8000.
   5 
   6 server {
   7 	listen 80 default_server;
   8 	# listen [::]:80 default_server ipv6only=on;
   9 
  10 	root /usr/share/nginx/html;
  11 	index index.html index.htm;
  12 
  13 	server_name lists.mailman3.org;
  14 
  15 	location / {
  16 		proxy_pass http://127.0.0.1:8000/;
  17 		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  18 		proxy_set_header X-Forwarded-Host $host;
  19 		proxy_set_header X-Forwarded-Server $host;
  20 		proxy_set_header X-Forwarded-Proto $scheme;
  21 		proxy_redirect off;
  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/mirror.mailman3.org/fullchain.pem;
  49 	ssl_certificate_key /etc/letsencrypt/live/mirror.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.
  • [get | view] (2018-12-17 04:18:21, 0.7 KB) [[attachment:apache_gunicorn.txt]]
  • [get | view] (2018-06-01 21:24:22, 0.3 KB) [[attachment:build_script.txt]]
  • [get | view] (2018-10-19 22:51:40, 0.2 KB) [[attachment:django-admin.txt]]
  • [get | view] (2016-10-15 02:46:23, 0.6 KB) [[attachment:domain_admin_notice_new-list.txt]]
  • [get | view] (2016-07-03 23:19:17, 0.1 KB) [[attachment:footer-generic.txt]]
  • [get | view] (2018-10-19 22:40:37, 0.2 KB) [[attachment:gunicorn.conf]]
  • [get | view] (2018-10-19 22:51:59, 0.2 KB) [[attachment:gunicorn.txt]]
  • [get | view] (2018-12-14 23:21:42, 1.5 KB) [[attachment:init.d_mailman.txt]]
  • [get | view] (2016-10-15 02:47:55, 0.3 KB) [[attachment:list_admin_action_post.txt]]
  • [get | view] (2016-10-15 02:51:01, 0.4 KB) [[attachment:list_member_digest_masthead.txt]]
  • [get | view] (2016-10-15 02:51:47, 0.1 KB) [[attachment:list_member_generic_footer.txt]]
  • [get | view] (2016-10-15 02:52:45, 0.2 KB) [[attachment:list_user_notice_post.txt]]
  • [get | view] (2016-10-15 02:53:25, 0.8 KB) [[attachment:list_user_notice_probe.txt]]
  • [get | view] (2016-10-15 02:54:12, 0.6 KB) [[attachment:list_user_notice_welcome.txt]]
  • [get | view] (2016-07-03 21:45:21, 0.4 KB) [[attachment:lm3o_gunicorn.conf.txt]]
  • [get | view] (2016-07-03 21:41:27, 0.4 KB) [[attachment:lm3o_gunicorn.txt]]
  • [get | view] (2016-07-03 21:56:08, 0.4 KB) [[attachment:lm3o_hyperkitty.cfg.txt]]
  • [get | view] (2016-07-03 21:53:00, 1.0 KB) [[attachment:lm3o_mailman.cfg.txt]]
  • [get | view] (2020-07-27 00:26:27, 1.8 KB) [[attachment:lm3o_nginx.txt]]
  • [get | view] (2020-07-27 00:13:20, 1.8 KB) [[attachment:lm3o_nginx2.txt]]
  • [get | view] (2016-07-03 22:03:34, 0.3 KB) [[attachment:lm3o_postfix.txt]]
  • [get | view] (2016-07-03 21:49:52, 3.8 KB) [[attachment:lm3o_settings_local.txt]]
  • [get | view] (2017-04-01 16:24:00, 0.8 KB) [[attachment:lm3o_urls.txt]]
  • [get | view] (2018-10-19 22:30:14, 0.4 KB) [[attachment:mailman-hyperkitty.cfg]]
  • [get | view] (2018-10-19 23:08:37, 0.8 KB) [[attachment:mailman-post-update.txt]]
  • [get | view] (2018-10-19 22:27:27, 0.9 KB) [[attachment:mailman.cfg]]
  • [get | view] (2018-10-19 22:52:25, 0.1 KB) [[attachment:mailman.txt]]
  • [get | view] (2019-11-08 00:26:04, 0.6 KB) [[attachment:mailman_crontab.txt]]
  • [get | view] (2017-01-10 01:02:14, 1.4 KB) [[attachment:mailman_init.txt]]
  • [get | view] (2016-07-03 23:19:28, 0.4 KB) [[attachment:masthead.txt]]
  • [get | view] (2016-07-03 22:26:05, 0.6 KB) [[attachment:mpo_lmtp_patch.txt]]
  • [get | view] (2016-07-03 22:12:07, 0.1 KB) [[attachment:mpo_mailman.cfg.add.txt]]
  • [get | view] (2016-07-03 22:14:30, 0.4 KB) [[attachment:mpo_postfix.cfg.txt]]
  • [get | view] (2016-07-03 22:23:02, 0.6 KB) [[attachment:mpo_postfix_main.txt]]
  • [get | view] (2016-07-03 22:16:38, 0.7 KB) [[attachment:mpo_postmap.txt]]
  • [get | view] (2016-07-04 01:35:54, 0.6 KB) [[attachment:mpo_settings_diff.txt]]
  • [get | view] (2020-07-30 18:57:00, 1.1 KB) [[attachment:mpo_wsgi.txt]]
  • [get | view] (2016-07-03 23:19:40, 0.6 KB) [[attachment:newlist.txt]]
  • [get | view] (2016-07-03 23:31:41, 0.3 KB) [[attachment:postack.txt]]
  • [get | view] (2016-07-03 23:19:49, 0.8 KB) [[attachment:probe.txt]]
  • [get | view] (2016-10-15 03:31:25, 12.3 KB) [[attachment:production.py]]
  • [get | view] (2018-06-01 21:18:34, 0.1 KB) [[attachment:pull_script.txt]]
  • [get | view] (2019-11-07 04:24:21, 5.8 KB) [[attachment:settings_local.py]]
  • [get | view] (2018-12-14 23:02:50, 0.4 KB) [[attachment:systemd_gunicorn.txt]]
  • [get | view] (2018-12-14 23:04:48, 0.4 KB) [[attachment:systemd_mailman.txt]]
  • [get | view] (2018-12-14 23:06:17, 0.3 KB) [[attachment:systemd_qcluster.txt]]
  • [get | view] (2019-01-15 21:22:55, 0.2 KB) [[attachment:upstart_gunicorn.txt]]
  • [get | view] (2019-01-15 21:27:19, 0.2 KB) [[attachment:upstart_qcluster.txt]]
  • [get | view] (2019-01-16 20:40:43, 1.4 KB) [[attachment:urls.py]]
  • [get | view] (2016-07-03 23:19:57, 0.6 KB) [[attachment:welcome.txt]]
  • [get | view] (2018-10-19 22:34:33, 1.1 KB) [[attachment:wsgi.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.