【问题标题】:Running Custom Textsecure (signal) Server Locally on Windows 10在 Windows 10 上本地运行自定义 Textsecure(信号)服务器
【发布时间】:2019-02-09 03:08:59
【问题描述】:

我需要消除在桌面上设置 Signal 服务器时出现的错误 ___Topic - 在 Windows 上设置 Signal Server。 已关注帖子 -

  1. Run custom TextSecure (Signal) server
  2. http://debabhishek.com/writes/Installing-and-Running-TextSecure-Signal-Server-on-Windows/

我正在使用来自 github 资源的 ref .yml 文件模板作为信号。

当试图 - 运行时

java -jar target/TextSecureServer-1.88.jar accountdb migrate config/textsecure.yml

我得到错误->

io.dropwizard.configuration.ConfigurationParsingException: config/textsecure.yml 有错误:* 无法解析配置 在:turn.uris.[0];无法反序列化 java.lang.String 的实例 [来源:未知;行:-1,列:-1] (通过参考链: org.whispersystems.textsecuregcm.WhisperServerConfiguration["turn"]->org.whispersystems.textsecuregcm.configuration.TurnConfiguration["uris"]->java.util.ArrayList[0])

在 io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:279) 在io

...

我的 textsecure.yml 文件是 -

twilio: # Twilio gateway configuration
  accountId: MYID
  accountToken: MYTOKEN
  numbers: # Numbers allocated in Twilio
    -

      +MYNO

  messagingServicesId: 
  localDomain:  http://localhost/
  # Domain Twilio can connect back to for calls. Should be domain of your service.

push:
  queueSize: 10000
  # Size of push pending queue


turn: # TURN server configuration
  secret:  # TURN server secret
  uris:
    - stun: http://localhost:80
    - stun: http://localhost:443
    - turn: http://localhost:443?transport=udp
    - turn: http://localturn4signal:80?transport=udp

cache: # Redis server configuration for cache cluster
  url: redis://12.12.12.1:6379/1
  replicaUrls: redis://12.12.12.1:6379/2

directory: # Redis server configuration for directory cluster
  url: redis://12.12.12.1:6379/3
  replicaUrls: redis://12.12.12.1:6379/4

messageCache: # Redis server configuration for message store cache
  url: redis://12.12.12.1:6379/5
  replicaUrls: redis://12.12.12.1:6379/6

messageStore: # Postgresql database configuration for message store
  driverClass: org.postgresql.Driver
  user: postgres
  password: ""
  url:   "jdbc:postgresql://localhost:5432/messagedb"

attachments: # AWS S3 configuration
  accessKey: MyKey
  accessSecret: MySecret
  bucket: MuBucket1

profiles: # AWS S3 configuration
  accessKey:   MYKEY2
  accessSecret: MySectret2
  bucket: MyBucket2
  #region:

database: # Postgresql database configuration
  driverClass: org.postgresql.Driver
  user: "postgres"
  password: ""
  url: "jdbc:postgresql://localhost:5432/accountsdb"

apn: # Apple Push Notifications configuration
  bundleId:  
  pushCertificate:  
  pushKey:  

gcm: # GCM Configuration
  senderId: MYID
  apiKey: MYKEY

谁能帮忙解决一下这个错误

【问题讨论】:

    标签: java signals dropwizard instant-messaging


    【解决方案1】:
    turn: # TURN server configuration
      secret: 121654fjdfgdyesdfgfhgh # TURN server secret
      uris:
        - stun:yourdomain:80 #fake
        - stun:yourdomain.com:443 #fake
        - turn:yourdomain:443?transport=udp #fake
        - turn:etc.com:80?transport=udp #fake
    

    这是适合我的配置。

    【讨论】:

      【解决方案2】:

      删除http:// 和空格。 您可能正在寻找:

      turn: # TURN server configuration
      secret:
      uris:
        - stun:127.0.0.1:80
        - stun:127.0.0.1:443
        - turn:127.0.0.1:80?transport=udp
        - turn:127.0.0.1:443?transport=udp
      

      更多详情请看论坛主题:https://community.signalusers.org/t/seeting-up-of-new-signal-server-instance-on-windows-10/4032/4

      【讨论】:

      • 感谢 Cleber,它成功了.. 但是我有一些 redis 服务器错误,我正在尝试通过输入 "" 来解决它
      • 配置文件中的某些字段丢失,您应该查看应用服务器的源代码以获取所需的内容。
      猜你喜欢
      • 2016-02-15
      • 1970-01-01
      • 1970-01-01
      • 2019-02-19
      • 1970-01-01
      • 2019-10-07
      • 2019-03-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多