2017-09-20 22 views
0

私はTraefikの後ろに動作するようにUpsourceを設定しようとしている:(80/443が別のために使用されるので)https://www.jetbrains.com/help/upsource/proxy-configuration.htmlTraefikでWebSocketをプロキシする方法は?

traefikは、ポート8008と8443を聴いている:

--entryPoints='Name:http Address::8008 Redirect.EntryPoint:https' --entryPoints='Name:https Address::8443 TLS' 

ドッキングウィンドウのラベルを:

labels: 
    traefik.backend: upsource 
    traefik.enable: "true" 
    traefik.port: "8080" 
    traefik.frontend.rule: "Host:review.domain.com" 
conf/internal/bundle.properties

において、base-urlは、以下のように構成されています

問題:

time="2017-09-20T03:23:59Z" level=error msg="Error getting ACME certificates [review.domain.com] : Cannot obtain certificates map[review.domain.com:acme: Error 400 - urn:acme:error:connection - Connection refused 
Error Detail: 
     Validation for review.domain.com:443 

なぜポート443の代わりに、8443のために検証?

また、nginxのでプロキシWebSocketをへ:

 proxy_set_header Upgrade $http_upgrade; 
     proxy_set_header Connection "upgrade"; 
     proxy_pass http://upsourcemachine.domain.local:1111; 
     proxy_pass_header Sec-Websocket-Extensions; 

あなたはそのTraefikサポートWebSocketをを確認することはできますか?もしそうなら、設定する方法は?

+0

を使用するようにTraefikを設定する必要がありますがtraefikのletsencryptを使用していますあなたの証明書を取得する場合は、エンドポイントの設定に問題があり、acmeが接続されている可能性があります。tomlファイルを投稿できますか? –

+0

WSとWSS Entrypointがありませんか? https://github.com/containous/traefik/issues/1327 – Berndinox

答えて

2

Traefikはwebsocketを処理します。このために特別な設定は必要ありません。

あなたの問題は、「Let's Encrypt」の難しさに関するものです。 :( レッツ・暗号化は、デフォルト以外のポートでTLSチャレンジを処理しないとTraefikに挑戦デフォルトはTLSです

だから、DNSチャレンジに https://docs.traefik.io/configuration/acme/

関連する問題