config.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: 'Säntis',
  13. VERSION_MOUNTAIN_URL: 'https://en.wikipedia.org/wiki/Säntis',
  14. VERSION_MOUNTAIN_IMAGE_URL: 'https://en.wikipedia.org/wiki/S%C3%A4ntis#/media/File:S%C3%A4ntis_mountain_by_sunset..JPG',
  15. VERSION_MOUNTAIN_IMAGE_COPYRIGHT: 'CC BY-SA 3.0 B0rder',
  16. VERSION_MOUNTAIN_HEIGHT: 2502,
  17. PREV_PROTOCOL_LAST_VERSION: '1.8.2',
  18. GIT_BRANCH: 'master',
  19. // SaltyRTC
  20. SALTYRTC_HOST: 'saltyrtc-{prefix}.threema.ch',
  21. SALTYRTC_PORT: 443,
  22. SALTYRTC_SERVER_KEY: 'b1337fc8402f7db8ea639e05ed05d65463e24809792f91eca29e88101b4a2171',
  23. // ICE
  24. ICE_SERVERS: [{
  25. urls: [
  26. 'turn:ds-turn-{prefix}.threema.ch:443?transport=udp',
  27. 'turn:ds-turn-{prefix}.threema.ch:443?transport=tcp',
  28. 'turns:ds-turn-{prefix}.threema.ch:443',
  29. ],
  30. username: 'threema-angular',
  31. credential: 'Uv0LcCq3kyx6EiRwQW5jVigkhzbp70CjN2CJqzmRxG3UGIdJHSJV6tpo7Gj7YnGB',
  32. }],
  33. // Push
  34. PUSH_URL: 'https://push-web.threema.ch/push',
  35. // Fonts
  36. // Note: If you want to use the Lab Grotesque font in your self-hosted
  37. // instance (with SELF_HOSTED=true), you need to obtain a license for
  38. // it and update the font URL below. Otherwise, Threema Web will
  39. // fall back to Roboto.
  40. FONT_CSS_URL: null,
  41. // Padding length (in characters) of the log tag
  42. // Note: The padding will be stripped by the report log.
  43. LOG_TAG_PADDING: 20,
  44. // Console log level
  45. // Note: It is advisable to set this to `info` on production.
  46. CONSOLE_LOG_LEVEL: 'debug',
  47. // Report log level and maximum amount of log records to keep in memory.
  48. // Note: There's no reason to change this unless you want to disable
  49. // the report tool.
  50. REPORT_LOG_LEVEL: 'debug',
  51. REPORT_LOG_LIMIT: 1000,
  52. // Compose area log level
  53. COMPOSE_AREA_LOG_LEVEL: 'warn',
  54. // SaltyRTC log level
  55. SALTYRTC_LOG_LEVEL: 'warn',
  56. // Timer (created by the TimeoutService) 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. TIMER_LOG_LEVEL: 'info',
  60. // App remote protocol log level.
  61. // Note: Log records filtered by this level will prevent them from being
  62. // picked up by the console and the report logger.
  63. ARP_LOG_LEVEL: 'debug',
  64. // Toggles expensive or sensitive logging operations. Toggles logging of
  65. // all chunks and messages exchanged by or associated with the app remote
  66. // protocol.
  67. // Note: Affects performance and contains sensitive information.
  68. ARP_LOG_TRACE: false,
  69. // Toggles URL logging to visualise MsgPack messages for all incoming and
  70. // outgoing protocol messages.
  71. // Note: Affects performance and contains sensitive information.
  72. MSGPACK_LOG_TRACE: false,
  73. // Transport log level
  74. TRANSPORT_LOG_LEVEL: 'warn',
  75. // Always show the real connection state using the dot in the logo
  76. VISUALIZE_STATE: true,
  77. } as threema.Config;