2017-06-09 4 views
3

ich die folgende Konfiguration für meine SchnappHTTPS mit Snap-in Produktion

Local.withPool 2 $ \pool -> do 
Local.parallel_ pool [ httpServe (setPort (read port) config) Main.skite 
        --, httpServe (setPort 8003 config) Ws.brz 
        ] 

--httpServe (setPort 8003 config) Ws.brz 
where 
config = 
    setErrorLog ConfigNoLog $ 
    setAccessLog ConfigNoLog $ 
    setSSLPort 443 $ 
    setSSLCert "/etc/letsencrypt/../cert.pem" $ 
    setSSLKey "/etc/letsencrypt/../privkey.pem" $ 
    defaultConfig 

haben Nachdem ich bin den Aufbau und das Hochladen, alle Zertifikate sind im Ort, doch die https:// wird nicht funktionieren. Hast du irgendwelche Hinweise?

Dank

Antwort

0

Ich tat es:

Zunächst einmal ich diese zwei Zeilen in die Konfigurations

 setSSLBind "0.0.0.0" $ 
    setSSLChainCert False $ 

Danach ist sehr wichtig zu bauen mit ghc -threaded und dies wird es hinzugefügt bekommen up and running