config.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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: 'Glärnisch',
  13. VERSION_MOUNTAIN_URL: 'https://de.wikipedia.org/wiki/Gl%C3%A4rnisch',
  14. VERSION_MOUNTAIN_IMAGE_URL: 'https://commons.wikimedia.org/wiki/File:Glarus_mit_Gl%C3%A4rnisch,_Sicht_Ennetberge_(18948043634).jpg',
  15. VERSION_MOUNTAIN_IMAGE_COPYRIGHT: 'CC BY Hans Bühler',
  16. VERSION_MOUNTAIN_HEIGHT: 2915,
  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. } as threema.Config;