settings.env 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # Network listeners for core OSCAR services. For multi-homed servers, allows
  2. # users to connect from multiple networks. For example, you can allow both LAN
  3. # and Internet clients to connect to the same server using different connection
  4. # settings.
  5. #
  6. # Format:
  7. # - Comma-separated list of [NAME]://[HOSTNAME]:[PORT]
  8. # - Listener names and ports must be unique
  9. # - Listener names are user-defined
  10. # - Each listener needs a listener in OSCAR_ADVERTISED_LISTENERS_PLAIN
  11. #
  12. # Examples:
  13. # // Listen on all interfaces
  14. # LAN://0.0.0.0:5190
  15. # // Separate Internet and LAN config
  16. # WAN://142.250.176.206:5190,LAN://192.168.1.10:5191
  17. export OSCAR_LISTENERS=LOCAL://0.0.0.0:5190
  18. # Hostnames published by the server that clients connect to for accessing
  19. # various OSCAR services. These hostnames are NOT the bind addresses. For
  20. # multi-homed use servers, allows clients to connect using separate hostnames
  21. # per network.
  22. #
  23. # Format:
  24. # - Comma-separated list of [NAME]://[HOSTNAME]:[PORT]
  25. # - Each listener config must correspond to a config in OSCAR_LISTENERS
  26. # - Clients MUST be able to connect to these hostnames
  27. #
  28. # Examples:
  29. # // Local LAN config, server behind NAT
  30. # LAN://192.168.1.10:5190
  31. # // Separate Internet and LAN config
  32. # WAN://aim.example.com:5190,LAN://192.168.1.10:5191
  33. export OSCAR_ADVERTISED_LISTENERS_PLAIN=LOCAL://127.0.0.1:5190
  34. # Network listeners for TOC protocol service.
  35. #
  36. # Format: Comma-separated list of hostname:port pairs.
  37. #
  38. # Examples:
  39. # // All interfaces
  40. # 0.0.0.0:9898
  41. # // Multiple listeners
  42. # 0.0.0.0:9898,192.168.1.10:9899
  43. export TOC_LISTENERS=0.0.0.0:9898
  44. # Network listener for management API binds to. Only 1 listener can be
  45. # specified. (Default 127.0.0.1 restricts to same machine only).
  46. export API_LISTENER=127.0.0.1:8080
  47. # Enable the WebAPI, which serves web-based AIM clients such as AIM Express.
  48. # When enabled, the server listens on WEBAPI_LISTENERS.
  49. export WEBAPI_ENABLED=true
  50. # Network listeners for WebAPI.
  51. #
  52. # Format: Comma-separated list of hostname:port pairs.
  53. #
  54. # Examples:
  55. # // All interfaces
  56. # 0.0.0.0:8081
  57. # // Multiple listeners
  58. # 0.0.0.0:8081,192.168.1.10:8082
  59. export WEBAPI_LISTENERS=0.0.0.0:8081
  60. # Origins allowed to call the WebAPI from a browser (CORS). A browser blocks a
  61. # cross-origin response whose origin is not listed here, so the client serving
  62. # the web app must appear in this list.
  63. #
  64. # Format:
  65. # - Comma-separated list of [SCHEME]://[HOSTNAME]:[PORT]
  66. # - An origin is the scheme, host and port together: a client served from
  67. # another port needs its own entry
  68. # - Omit the port when it is the scheme default, the way a browser writes it:
  69. # https://aim.example.com, not https://aim.example.com:443
  70. # - No trailing slash, path, query or fragment
  71. # - An entry may contain one wildcard (*) standing in for 0 or more characters,
  72. # in the host or the port: https://*.example.com, http://localhost:* . Only one
  73. # wildcard per entry, the scheme cannot be wildcarded, and matching one costs a
  74. # little more per request
  75. # - A lone * allows any origin, which is also what an unset or empty value
  76. # means
  77. #
  78. # Examples:
  79. # // Single origin
  80. # https://ras.dev
  81. # // Web app on a separate port, plus the API host itself
  82. # http://localhost:8000,https://ras.dev
  83. # // Any origin (development only)
  84. # *
  85. export WEBAPI_ALLOWED_ORIGINS=http://localhost:*
  86. # The path to the SQLite database file. The file and DB schema are auto-created
  87. # if they doesn't exist.
  88. export DB_PATH=oscar.sqlite
  89. # Disable password check and auto-create new users at login time. Useful for
  90. # quickly creating new accounts during development without having to register
  91. # new users via the management API.
  92. export DISABLE_AUTH=true
  93. # Disable notification sent when another client signs in with the same screen
  94. # name.
  95. export DISABLE_MULTI_LOGIN_NOTIF=true
  96. # Set logging granularity. Possible values: 'trace', 'debug', 'info', 'warn',
  97. # 'error'.
  98. export LOG_LEVEL=info
  99. # Fallback character set used to transcode IMs between Unicode-capable and
  100. # legacy clients. Possible values: Windows1250 (central european: polish, czech,
  101. # hungarian), Windows1251 (russian), Windows1252 (western european: english,
  102. # french, german), Windows1253 (greek), Windows1254 (turkish), Windows1255
  103. # (hebrew), Windows1256 (arabic), Windows1257 (baltic: lithuanian, latvian,
  104. # estonian), Windows1258 (vietnamese), KOI8R (russian), KOI8U (ukrainian).
  105. export ICBM_LEGACY_CHARSET=Windows1251
  106. # Enable legacy ICQ protocol support (v2-v5). Allows vintage ICQ clients to
  107. # connect.
  108. export ICQ_LEGACY_ENABLED=true
  109. # UDP listener address for legacy ICQ protocols.
  110. #
  111. # Format: HOST:PORT
  112. #
  113. # Examples:
  114. # // All interfaces
  115. # 0.0.0.0:4000
  116. # // Specific interface
  117. # 192.168.1.10:4000
  118. export ICQ_LEGACY_UDP_LISTENER=0.0.0.0:4000
  119. # Comma-separated list of supported ICQ protocol versions. Valid values: 1, 2,
  120. # 3, 4, 5 (V1 is experimental).
  121. export ICQ_LEGACY_VERSIONS=2,3,4,5
  122. # Session timeout for legacy ICQ connections. Sessions are cleaned up after this
  123. # duration of inactivity.
  124. export ICQ_LEGACY_SESSION_TIMEOUT=120s
  125. # Expected keep-alive interval from clients. Used for timeout calculations.
  126. export ICQ_LEGACY_KEEPALIVE_INTERVAL=120s
  127. # Allow automatic user registration from legacy clients. When enabled, new UINs
  128. # can be created via the legacy protocol.
  129. export ICQ_LEGACY_AUTO_REGISTRATION=false
  130. # Enable department listing feature (groupware functionality).
  131. export ICQ_LEGACY_DEPARTMENTS_ENABLED=false
  132. # Enable broadcast message functionality.
  133. export ICQ_LEGACY_BROADCAST_ENABLED=true
  134. # Enable Web Pager (WWP) message support.
  135. export ICQ_LEGACY_WWP_ENABLED=true
  136. # Comma-separated list of protocol versions that send real connection info (IP,
  137. # port) in user online notifications. Disabled for privacy and interoperability.
  138. # Required for peer-to-peer features (file transfer, direct chat). Example: 5 or
  139. # 3,4,5
  140. export ICQ_LEGACY_DIRECT_CONNECTIONS=5