Guest User

Untitled

a guest
Mar 27th, 2011
2,369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.23 KB | None | 0 0
  1. [root@kindle config]# cat ServerConfig.conf
  2. #
  3. # ServerConfig.conf
  4. #
  5. # Copyright (c) 2009-2010 Amazon Technologies, Inc. All rights reserved.
  6. #
  7. # PROPRIETARY/CONFIDENTIAL
  8. #
  9. # Use is subject to license terms.
  10. #
  11.  
  12. #
  13. # This 'Java property file' format file has all the configuration items that may be changed
  14. # dynamically by the server. At this point, it consists mostly of server command URLs
  15. # and their parameter lists.
  16. #
  17. # Parameter lists are documented by index and name. The URLUtil.buildCommand() method
  18. # may be used to read the command and parameters, and associate them with a passed-in
  19. # array of arguments (which is why index is significant). null arguments will result
  20. # in a given parameter not being used at all.
  21. # extra arguments will be added to the end of the URL (i.e. '...&param=arg&foo&bar')
  22. #
  23. # Commands have 3 elements: 1) The command itself, referenced by the base key,
  24. # 2) The server key name, referenced by the base key + ".urlkey" OR the server name, referenced by the base key + ".url"
  25. # 3) (optional) a list of parameters, referenced by the base key + ".params"
  26. # 4) (optional) a list of 'global' parameters, whose values are supplied by the device, referenced by the base key + ".global.params"
  27. # All commands should start with "cmd.", URLs should start with "url."
  28. #
  29. # Global params can only be from this list:
  30. # software_rev, patch_rev, prl_rev, prl_patch_rev, patchVersion,
  31. # X-DeviceType, X-DeviceFirmwareVersion, X-DSN, X-Anonymous-Tag,
  32. # currentTransportMethod, currentCountry, currentMCC, currentSponsoredHotspot
  33. #
  34.  
  35. #
  36. # getDevicesWithCollections
  37. # Args: 0 (filter) - should be one of: null (all), 'registered' or 'deregistered'
  38. #
  39. cmd.get.devices=getAllDevicesWithCollections
  40. cmd.get.devices.urlkey=url.cde
  41. cmd.get.devices.params=filter
  42. cmd.get.devices.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  43.  
  44. #
  45. # getCollections
  46. # Args: 0 (serialNumber) - Device serial number
  47. # 1 (deviceType) - Device type
  48. #
  49. cmd.get.collections=getCollections
  50. cmd.get.collections.urlkey=url.cde
  51. cmd.get.collections.params=serialNumber,deviceType
  52. cmd.get.collections.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  53.  
  54. #
  55. # registerDevice
  56. # Args: 0 (deviceType) - Device Type, see https://w.amazon.com/index.php/DevicePlatform/DeviceRegistry
  57. # 1 (deviceSerialNumber) - Device serial number
  58. # 2 (email) - User's email address (Amazon account)
  59. # 3 (password) - User's Amazon account password
  60. # 4 (deviceName) - Device's nickname (optional)
  61. # 5 (softwareVersion/software_rev) - [GLOBAL] Device software version (optional)
  62. # 6 (pid) - Device PID
  63. # 7 (device_model) - Device model (optional, used only by Klamath)
  64. # 8 (os_version) - OS version of the device (optional, used only by Klamath)
  65. #
  66. cmd.registerDevice=registerDevice
  67. cmd.registerDevice.urlkey=url.firs.unauth
  68. cmd.registerDevice.params=deviceType,deviceSerialNumber,email,password,deviceName,pid,device_model,os_version
  69. cmd.registerDevice.global.params=software_rev,currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  70.  
  71. #
  72. # getNames
  73. # Args: 0 (pid) - Device PID
  74. # 1 (reason) - optional reason code, should be null or 'no_state'
  75. #
  76. cmd.get.registration=getNamesForFiona
  77. cmd.get.registration.urlkey=url.firs
  78. cmd.get.registration.params=pid,reason
  79. cmd.get.registration.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  80.  
  81. #
  82. # renameDevice
  83. # Args: 0 (nickname) - New device name
  84. #
  85. cmd.rename.device=renameFiona
  86. cmd.rename.device.urlkey=url.firs
  87. cmd.rename.device.params=nickname
  88. cmd.rename.device.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  89.  
  90. #
  91. # deregisterFiona
  92. # Args: None
  93. #
  94. cmd.deregistration=disownFiona
  95. cmd.deregistration.urlkey=url.firs
  96. cmd.deregistration.params=contentDeleted
  97. cmd.deregistration.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  98.  
  99. #
  100. # getNewDeviceCredentials
  101. # This call is unauthenticated, so we need to use the FiRS unauthenticated URL.
  102. # See: https://w.amazon.com/index.php/DevicePlatform/DeviceRegistration/ExternalAPI#getNewDeviceCredentials
  103. #
  104. # Args: 0 (deviceType) - Device Type, see https://w.amazon.com/index.php/DevicePlatform/DeviceRegistry
  105. # 1 (deviceSerialNumber) - Device serial number
  106. # 2 (radioId) - Radio identifier, either ESN, ICCID, or MAC address
  107. # 3 (secret) - Shared secret between the device and server
  108. # 4 (secondaryRadioId) - Secondary radio identifier for devices with two network
  109. # interfaces, either ESN, ICCID, or MAC address
  110. # 5 (softwareVersion/software_rev) - [GLOBAL] Device software version (optional)
  111. # 6 (reason) - "NoState" or anything else (optional)
  112. #
  113. cmd.get.newDeviceCredentials=getNewDeviceCredentials
  114. cmd.get.newDeviceCredentials.urlkey=url.firs.unauth
  115. cmd.get.newDeviceCredentials.params=deviceType,deviceSerialNumber,radioId,secret,secondaryRadioId,reason
  116. cmd.get.newDeviceCredentials.global.params=software_rev,currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  117.  
  118. #
  119. # getDeviceCredentials
  120. # This call is authenticated, unlike the getNewDeviceCredentials call, so
  121. # existing certificates are needed.
  122. # See: https://w.amazon.com/index.php/DevicePlatform/DeviceRegistration/ExternalAPI#getDeviceCredentials
  123. #
  124. # Args: 0 (reason) - "NoState" or anything else (optional)
  125. # 1 (softwareVersion/software_rev) - [GLOBAL] Device software version (optional)
  126. #
  127. #
  128. cmd.get.deviceCredentials=getDeviceCredentials
  129. cmd.get.deviceCredentials.urlkey=url.firs
  130. cmd.get.deviceCredentials.params=reason
  131. cmd.get.deviceCredentials.global.params=software_rev,currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  132.  
  133. #
  134. # getTodoItems
  135. # Args: 0 (count) - Max items to get
  136. # 1 (device_lto) - Local time offset
  137. # 2 (reason) - Reason why getItems is being called.
  138. #
  139. # PLEASE NOTE, SHA-2820:
  140. # If any new ToDo key is added, please ensure dynamic configuration validate
  141. # handles it properly. Validation occurs at TaskProcess's
  142. # parseConfig(String newSettings);
  143. #
  144. cmd.get.todo.items=getItems
  145. cmd.get.todo.items.urlkey=url.todo
  146. cmd.get.todo.items.params=count,device_lto,reason
  147. cmd.get.todo.items.global.params=software_rev,patch_rev,prl_rev,prl_patch_rev,currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  148.  
  149. #
  150. # removeToDoItems
  151. # Args: 0 (todoItemReferenceId) - Server-side request identifier.
  152. #
  153. cmd.remove.todo.items=removeItems
  154. cmd.remove.todo.items.urlkey=url.todo
  155. cmd.remove.todo.items.params=todoItemReferenceId
  156. cmd.remove.todo.items.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  157.  
  158. #
  159. # SyncMetadata
  160. # Args: 0 (last_sync_time) - Last sync time
  161. #
  162. cmd.sync.metadata=syncMetaData
  163. cmd.sync.metadata.urlkey=url.todo
  164. cmd.sync.metadata.params=last_sync_time
  165. cmd.sync.metadata.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  166.  
  167. #
  168. # getMetadata
  169. # Args: 0 (key) - cde key
  170. # 1 (type) - cde type
  171. #
  172. cmd.get.metadata=getMetaData
  173. cmd.get.metadata.urlkey=url.todo
  174. cmd.get.metadata.params=key,type
  175. cmd.get.metadata.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  176.  
  177. #
  178. # getAnnotations
  179. # Args: 0 (key) - cde key
  180. # 1 (type) - cde type
  181. # 2 (filter) - filter
  182. #
  183. cmd.get.annotations=getAnnotations
  184. cmd.get.annotations.urlkey=url.cde
  185. cmd.get.annotations.params=key,type,filter
  186. cmd.get.annotations.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  187.  
  188. #
  189. # downloadContent
  190. # Args: 0 (key) - cde key
  191. # 1 (type) - cde type
  192. # 2 (version) - Content version
  193. # 3 (is_archived_items) - Archived items flag, 1 == true, 0 == false
  194. # 4 (todoItemReferenceId) - Server-side request identifier.
  195. #
  196. cmd.get.content=FSDownloadContent
  197. cmd.get.content.urlkey=url.cde
  198. cmd.get.content.params=key,type,version,is_archived_items,todoItemReferenceId
  199. cmd.get.content.global.params=software_rev,patch_rev,prl_rev,prl_patch_rev,patchVersion,currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  200.  
  201. #
  202. # send/get Sidecar
  203. # Args: 0 (key) - cde key (get only)
  204. # 1 (type) - cde type (get only)
  205. # 2 (device_lto) - Local time offset (put only)
  206. #
  207. cmd.sidecar=sidecar
  208. cmd.sidecar.urlkey=url.cde
  209. cmd.sidecar.params=key,type,device_lto
  210. cmd.sidecar.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  211.  
  212. #
  213. # send reading experience journal
  214. #
  215. cmd.rexp=uploadReadingExperienceJournal
  216. cmd.rexp.urlkey=url.cde
  217.  
  218. # get popular highlight
  219. # args: 0 (key) - cde key
  220. # 1 (type) - cde type
  221. # 2 (version) - version
  222. # 4 (guid) - guid
  223. # 5 (update_id) - update_id
  224. cmd.popular_highlight=getPopularHighlights
  225. cmd.popular_highlight.urlkey=url.cde
  226. cmd.popular_highlight.params=key,type,version,guid,update_id
  227. cmd.popular_highlight.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  228.  
  229. # get page numbers
  230. # args: 0 (key) - cde key
  231. # 1 (type) - cde type
  232. # 2 (version) - book version
  233. # 4 (guid) - guid
  234. # 5 (update_id) - sidecar update_id
  235. # get page numbers
  236. cmd.page_numbers=getPageNumbers
  237. cmd.page_numbers.urlkey=url.cde
  238. cmd.page_numbers.params=key,type,version,guid,update_id
  239.  
  240. #
  241. # sendLog
  242. # Args: 0 (key) - Server data key
  243. #
  244. cmd.send.log=log
  245. cmd.send.log.urlkey=url.cde
  246. cmd.send.log.params=key
  247. cmd.send.log.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  248.  
  249. #
  250. # sendSyslog
  251. # Args: 0 (key) - Server data key
  252. #
  253. cmd.send.syslog=MessageLogServlet
  254. cmd.send.syslog.urlkey=url.det
  255. cmd.send.syslog.params=key
  256. cmd.send.syslog.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  257.  
  258. #
  259. # uploadLogs - uploads anonymous logs
  260. # Args: 0 (key) - Log key
  261. #
  262. cmd.upload.logs=DETLogServlet
  263. cmd.upload.logs.urlkey=url.det.unauth
  264. cmd.upload.logs.params=key
  265. cmd.upload.logs.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  266.  
  267. #
  268. # getSearchIndex
  269. # Args: 0 (key) - cde key
  270. # 1 (type) - cde type
  271. # 2 (version) - version
  272. # 3 (random_id) - randomized id
  273. # 4 (last_quick_search) - last search time
  274. # 5 (index_version) - index version
  275. # 6 (no key) - "forced_index" or null
  276. #
  277. cmd.get.search.index=FSDownloadSearchIndex
  278. cmd.get.search.index.urlkey=url.cde
  279. cmd.get.search.index.params=key,type,version,random_id,last_quick_search,index_version
  280. cmd.get.search.index.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  281.  
  282. #
  283. # appCheck (411)
  284. # Args: None
  285. #
  286. cmd.app.check=AppCheck7
  287. cmd.app.check.urlkey=url.cde
  288. cmd.app.check.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  289.  
  290. #
  291. # shareHighlightAndNote
  292. # Args: 0 (key) - cde key
  293. # 1 (type) - cde type
  294. # 2 (language) - user's language preference
  295. # 3 (version) - book version
  296. # 4 (guid) - book GUID
  297. # 5 (note_text) - note text to share
  298. # 6 (note_location) - location of first character of the word the note is attached to
  299. # 7 (highlight_text) - highlight text to share or context for the note
  300. # 8 (highlight_start) - location of the first character of the first word of the highlight
  301. # 9 (highlight_end) - location of the last character of the last word of the highlight
  302. # 10 (highlight_is_default_context) - present if the highlight is the default context (not a user's highlight)
  303. # 11 (extra) - XML containing additional book/context information
  304. # 12 (xfsn) - device's XFSN
  305. #
  306. cmd.share.highlight.and.note=shareHighlightAndNote
  307. cmd.share.highlight.and.note.urlkey=url.cde
  308. cmd.share.highlight.and.note.params=key,type,language,version,guid,note_text,note_location,highlight_text,highlight_start,highlight_end,highlight_is_default_context,extra,xfsn
  309. cmd.share.highlight.and.note.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  310.  
  311. #
  312. # Sharing registration
  313. # Args: 0 (from_book) - 0 if we are not coming from a book, 1 if we are coming from a book (used to include the special "Return to Book" link)
  314. #
  315. cmd.sharing.registration=social
  316. cmd.sharing.registration.url=https://kindle.amazon.com
  317. cmd.sharing.registration.params=from_book
  318. cmd.sharing.registration.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  319.  
  320. #
  321. # Sharing content length restrictions.
  322. # A negative value turns the restriction off.
  323. #
  324. max.note.length=-1
  325. max.recoverable.highlight.length=0
  326. max.nonrecoverable.newspaper.highlight.length=1400
  327. max.nonrecoverable.magazine.highlight.length=1400
  328. max.nonrecoverable.feed.highlight.length=700
  329. max.nonrecoverable.pdoc.highlight.length=700
  330. max.social.message.length=100
  331.  
  332. #
  333. # On-device Account creation
  334. # Args: DSN
  335. #
  336. cmd.account.registration=gp/kw
  337. cmd.account.registration.url=https://www.amazon.com
  338. cmd.account.registration.params=dsn
  339. cmd.account.registration.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  340.  
  341. #
  342. # WAN Proxy
  343. #
  344. # Each protocol that is proxied, needs to have the following information:
  345. # wan.proxy.host.<protocol> - The proxy host for this protocol. This returns a dynamic configuration property to get.
  346. # wan.proxy.port.<protocol> - The proxy port for this protocol.
  347. # wan.proxy.non_proxy_hosts.<protocol> - A regular expression of hosts that should not go through the proxy.
  348. #
  349.  
  350. #
  351. # WAN HTTP Proxy
  352. #
  353. wan.proxy.host.http=url.fints
  354. wan.proxy.port.http=80
  355. wan.proxy.non_proxy_hosts.http=*.amazon.com|*.images-amazon.com|*.amazon.co.uk
  356.  
  357. #
  358. # WAN HTTPS Proxy
  359. #
  360. wan.proxy.host.https=url.fints
  361. wan.proxy.port.https=80
  362. wan.proxy.non_proxy_hosts.https=*.amazon.com|*.images-amazon.com|*.amazon.co.uk
  363.  
  364. #
  365. # WAN FTP Proxy
  366. #
  367. wan.proxy.host.ftp=url.fints
  368. wan.proxy.port.ftp=80
  369. wan.proxy.non_proxy_hosts.ftp=*.amazon.com|*.images-amazon.com|*.amazon.co.uk
  370.  
  371. #
  372. # KDK Subscriptions API
  373. # Args: 0 (appId) - Application Id
  374. #
  375. cmd.kdk.subs.status=status
  376. cmd.kdk.subs.status.urlkey=url.kdk.subs
  377. cmd.kdk.subs.status.params=appId
  378. cmd.kdk.subs.status.global.params=currentTransportMethod,currentCountry,currentMCC,currentSponsoredHotspot
  379.  
  380. #
  381. # websiteURL
  382. #
  383. url.website=https://www.amazon.com
  384.  
  385. #
  386. # storeURL
  387. #
  388. url.store=https://www.amazon.com/gp/g7g/xyml1/
  389.  
  390. #
  391. # CDE server
  392. #
  393. url.cde=https://cde-g7g.amazon.com/FionaCDEServiceEngine
  394.  
  395. #
  396. # FiRS server
  397. #
  398. url.firs=https://firs-g7g.amazon.com/FirsProxy
  399.  
  400. #
  401. # FiRS unauthenticated server
  402. #
  403. url.firs.unauth=https://firs-ta-g7g.amazon.com/FirsProxy
  404.  
  405. #
  406. # TODO server
  407. #
  408. url.todo=https://todo-g7g.amazon.com/FionaTodoListProxy
  409.  
  410. #
  411. # DET server
  412. #
  413. url.det=https://det-g7g.amazon.com/DeviceEventProxy
  414.  
  415. #
  416. # DET unauthenticated server
  417. #
  418. url.det.unauth=https://det-ta-g7g.amazon.com/DeviceEventProxy
  419.  
  420. #
  421. # FINTS server - Proxy
  422. #
  423. # The proxy URL should only include the hostname without the protocol.
  424. #
  425. url.fints=fints-g7g.amazon.com
  426.  
  427. #
  428. # KDK Subscriptions API URL
  429. #
  430. url.kdk.subs=https://kdk-ws.amazon.com/SubscriptionStatusProxy
  431.  
  432. #
  433. # Store Cookie Domains (comma-delimited allowed RFC-2109 domains for the Store cookie)
  434. #
  435. cookie.store.domains=.amazon.com
Advertisement
Add Comment
Please, Sign In to add comment