Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (48 sloc) 2.475 kb
576ce86 Initial version of Real-time Facebook Graph API Proxy
ypisetsky authored
1
2 # proxy endpoint settings
3 # this endpoint must NOT be visible from untrusted sources, or an attacker
4 # could retrieve data from the cache without valid authentication
5 proxy_port = 14567
6 proxy_interface = '0.0.0.0'
7
8 # realtime-update endpoint settings
9 # this endpoint must be visible from Facebook.
10 realtime_port = 14568
11 realtime_interface = '0.0.0.0'
12 public_hostname = "server.domain.com"
13
14 # cache settings
15 cache_entries = 10000
16
17
18 # application settings: Each application should be specified
19 # in a format similar to the following example:
20 # apps[] = { 'appid': 12345, 'property': value }
21 #
22 # Currently supported properties
23 # appid - the Application ID
24 # app_cred - an access_token (without the 'access_token=' which
25 # is a valid client_cred access token for the application.
26 # This is used to fetch subscription information on startup.
27 # app_secret - the application secret. This is used only if app_cred
28 # is not provided to fetch subscription information on startup
29 #
30 # blacklist_fields - Fields which will force a request to bypass the cache
31 # if present in a ?fields= query string param. This should be an array
32 # of strings (i.e. ['hometown', 'last_name'])
33 # whitelist_fields - If present, will only consider requests consisting of only
34 # these fields as eligible for caching. It is recommended that
35 # provide exactly one of app_cred, app_secret, and whitelist_fields
36 # Note: these apply only to fetches of a user (i.e. /userid?fields=name,link)
37 # Note 2: if one of app_cred or app_secret is specified, the realtime
38 # subscription for the app will be updated to point to our endpoint.
39 #
40 # blacklist_connections - Connections for which requests will be forced to
41 # bypass the cache. (for instance /userid/friends)
42 # whitelist_connections - If present, will only consider connections on this
43 # as eligible for caching. The notes for whitelist_fields apply here too.
44
45
46 app_1 = {
47 'app_id': '123456789012345', \
48 'app_cred': '123456789012345|REPLACEWITHYOURCRED.',
49 'whitelist_fields': ['first_name', 'last_name', 'name', 'about', 'bio',
50 'about', 'relationship_status', 'email', 'significant_other',
51 'hometown', 'location', 'work', 'education', 'gender'],
52 'whitelist_connections': ['friends', 'feed', 'movies', 'books',
53 'family', 'activities', 'interests', 'music', 'television',
54 'statuses', 'links', 'picture']}
55
56
57 apps = [app_1]
Something went wrong with that request. Please try again.