我需要消除在台式机上设置信号服务器的错误___主题-在Windows上设置信号服务器。
发布后-


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


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

尝试时-RUn

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的实例
  在[来源:UNKNOWN;行:-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


可以请一个帮忙消除错误

最佳答案

删除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

关于java - 在Windows 10上本地运行自定义Textsecure(信号)服务器,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52160261/

10-10 14:02