config.ts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Threema Web configuration.
  3. *
  4. * The various options are explained in the `README.md` file.
  5. */
  6. // tslint:disable:max-line-length
  7. export default {
  8. // Version
  9. VERSION: '[[VERSION]]',
  10. // General
  11. SELF_HOSTED: false,
  12. VERSION_MOUNTAIN: 'Fluebrig',
  13. VERSION_MOUNTAIN_URL: 'https://en.wikipedia.org/wiki/Fluebrig',
  14. VERSION_MOUNTAIN_IMAGE_URL: 'img/bg.original.jpg',
  15. VERSION_MOUNTAIN_IMAGE_COPYRIGHT: '', // Own work
  16. VERSION_MOUNTAIN_HEIGHT: 2098,
  17. PREV_PROTOCOL_LAST_VERSION: '1.8.2',
  18. GIT_BRANCH: 'master',
  19. // SaltyRTC
  20. SALTYRTC_HOST: null,
  21. SALTYRTC_HOST_PREFIX: 'saltyrtc-',
  22. SALTYRTC_HOST_SUFFIX: '.threema.ch',
  23. SALTYRTC_PORT: 443,
  24. SALTYRTC_SERVER_KEY: 'b1337fc8402f7db8ea639e05ed05d65463e24809792f91eca29e88101b4a2171',
  25. // ICE
  26. ICE_SERVERS: [{
  27. urls: [
  28. 'turn:ds-turn.threema.ch:443?transport=udp',
  29. 'turn:ds-turn.threema.ch:443?transport=tcp',
  30. 'turns:ds-turn.threema.ch:443',
  31. ],
  32. username: 'threema-angular',
  33. credential: 'Uv0LcCq3kyx6EiRwQW5jVigkhzbp70CjN2CJqzmRxG3UGIdJHSJV6tpo7Gj7YnGB',
  34. }],
  35. // Push
  36. PUSH_URL: 'https://push-web.threema.ch/push',
  37. // Padding length (in characters) of the log tag
  38. // Note: The padding will be stripped by the report log.
  39. LOG_TAG_PADDING: 20,
  40. // Console log level
  41. // Note: It is advisable to set this to `info` on production.
  42. CONSOLE_LOG_LEVEL: 'debug',
  43. // Report log level and maximum amount of log records to keep in memory.
  44. // Note: There's no reason to change this unless you want to disable
  45. // the report tool.
  46. REPORT_LOG_LEVEL: 'debug',
  47. REPORT_LOG_LIMIT: 1000,
  48. // Compose area log level
  49. COMPOSE_AREA_LOG_LEVEL: 'warn',
  50. // SaltyRTC log level
  51. SALTYRTC_LOG_LEVEL: 'warn',
  52. // Timer (created by the TimeoutService) log level.
  53. // Note: Log records filtered by this level will prevent them from being
  54. // picked up by the console and the report logger.
  55. TIMER_LOG_LEVEL: 'info',
  56. // App remote protocol log level.
  57. // Note: Log records filtered by this level will prevent them from being
  58. // picked up by the console and the report logger.
  59. ARP_LOG_LEVEL: 'debug',
  60. // Toggles expensive or sensitive logging operations. Toggles logging of
  61. // all chunks and messages exchanged by or associated with the app remote
  62. // protocol.
  63. // Note: Affects performance and contains sensitive information.
  64. ARP_LOG_TRACE: false,
  65. // Toggles URL logging to visualise MsgPack messages for all incoming and
  66. // outgoing protocol messages.
  67. // Note: Affects performance and contains sensitive information.
  68. MSGPACK_LOG_TRACE: false,
  69. // Transport log level
  70. TRANSPORT_LOG_LEVEL: 'warn',
  71. } as threema.Config;