Attachment 'lm3o_settings_local.txt'

Download

   1 # mailman-bundler/mailman_web/settings_local.py (not the real keys/secrets)
   2 
   3 # SECURITY WARNING: keep the secret key used in production secret!
   4 SECRET_KEY = 'django secret'
   5 
   6 MAILMAN_ARCHIVER_KEY = 'arch_secret'
   7 
   8 ADMINS = (
   9      ('Mailman Admin', 'mailman@localhost'),
  10 )
  11 
  12 # Hosts/domain names that are valid for this site; required if DEBUG is False
  13 # See https://docs.djangoproject.com/en/1.9/ref/settings/#allowed-hosts
  14 #ALLOWED_HOSTS = ['*']
  15 ALLOWED_HOSTS = ['localhost',
  16                  '127.0.0.1',
  17                  'lists.mailman3.org',
  18                  'mail.mailman3.org',
  19                  'mailman.iad1.psf.io',
  20                  'mail.falconframework.org',
  21                  '104.239.228.201',
  22                 ]
  23 
  24 # And for BrowserID too, see
  25 # http://django-browserid.rtfd.org/page/user/settings.html#django.conf.settings.BROWSERID_AUDIENCES
  26 BROWSERID_AUDIENCES = [ "http://localhost",
  27                         "http://localhost:8000",
  28                         "http://127.0.0.1:8000",
  29                         "http://lists.mailman3.org",
  30                         "http://mail.falconframework.org",
  31                         "https://localhost",
  32                         "https://localhost:8000",
  33                         "https://127.0.0.1:8000",
  34                         "https://lists.mailman3.org",
  35                         "https://mail.falconframework.org",
  36                       ]
  37 
  38 
  39 ## Email confirmation / address activation
  40 # Add a from-address for email-confirmation:
  41 # EMAIL_CONFIRMATION_FROM = 'postmaster@example.org'
  42 EMAIL_CONFIRMATION_FROM = 'mailman@mailman3.org'
  43 
  44 MAILMAN_ARCHIVER_FROM = ('127.0.0.1',
  45                          '::1',
  46                          '::ffff:127.0.0.1',
  47                          '104.239.228.201',
  48                         )
  49 
  50 DATABASES = {
  51     'default': {
  52         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Last part is one of 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
  53         'NAME': 'mailmanweb',  # Example, change as needed
  54         'USER': 'mailman',
  55         'PASSWORD': 'db_passwd',
  56         'HOST': '127.0.0.1',   # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
  57         'PORT': '5432',            # Set to empty string for default.
  58     }
  59 }
  60 
  61 # If you're behind a proxy, use the X-Forwarded-Host header
  62 # See https://docs.djangoproject.com/en/1.8/ref/settings/#use-x-forwarded-host
  63 USE_X_FORWARDED_HOST = True
  64 # And if your proxy does your SSL encoding for you, set SECURE_PROXY_SSL_HEADER
  65 # see https://docs.djangoproject.com/en/1.5/ref/settings/#secure-proxy-ssl-header
  66 SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  67 
  68 # Use SSL when logged in. You need to enable the SSLRedirect middleware for
  69 # this feature to work.
  70 USE_SSL = True
  71 
  72 TIME_ZONE = 'UTC'
  73 
  74 AUTHENTICATION_BACKENDS = (
  75     #'social.backends.open_id.OpenIdAuth',
  76     # http://python-social-auth.readthedocs.org/en/latest/backends/google.html
  77     #'social.backends.google.GoogleOpenId',
  78     'social.backends.google.GoogleOAuth2',
  79     # Twitter isn't working ...
  80     # Rumor has it you can't get email from twitter :(
  81     #'social.backends.twitter.TwitterOAuth',
  82     # Yahoo works, but don't encourage Yahoo until we get DMARC mitigations.
  83     #'social.backends.yahoo.YahooOpenId',
  84     'social.backends.facebook.FacebookOAuth2',
  85     'django_browserid.auth.BrowserIDBackend',
  86     'django.contrib.auth.backends.ModelBackend',
  87 )
  88 
  89 SOCIAL_AUTH_TWITTER_KEY = 'twitter key'
  90 SOCIAL_AUTH_TWITTER_SECRET = 'twitter secret'
  91 SOCIAL_AUTH_TWITTER_SCOPE = ['email', 'name']
  92 
  93 SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'google key'
  94 SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'google secret'
  95 SOCIAL_AUTH_GOOGLE_OAUTH2_USE_DEPRECATED_API = True
  96 
  97 SOCIAL_AUTH_FACEBOOK_KEY = 'fb key'
  98 SOCIAL_AUTH_FACEBOOK_SECRET = 'fb secret'
  99 SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'public_profile']
 100 SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
 101     'fields': 'name, email',
 102 }

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.