我需要消除在桌面上设置信号服务器时出现的错误___主题 - 在 Windows 上设置信号服务器。 帖子已关注 -
- Run custom TextSecure (Signal) server
- 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 has an error: * Failed to parse configuration at: turn.uris.[0]; Cannot deserialize instance of
java.lang.String
out of START_OBJECT token at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.whispersystems.textsecuregcm.WhisperServerConfiguration["turn"]->org.whispersystems.textsecuregcm.configuration.TurnConfiguration["uris"]->java.util.ArrayList[0])at io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:279) at 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/