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.You are not allowed to attach a file to this page.