another old warp-tls workaround
This commit is contained in:
parent
8d8f8bbbb5
commit
a7b3a2b097
1 changed files with 4 additions and 0 deletions
|
@ -125,9 +125,13 @@ myUrl tlssettings webapp addr = unpack $ yesodRender webapp urlbase DashboardR [
|
||||||
|
|
||||||
getTlsSettings :: Annex (Maybe TLS.TLSSettings)
|
getTlsSettings :: Annex (Maybe TLS.TLSSettings)
|
||||||
getTlsSettings = do
|
getTlsSettings = do
|
||||||
|
#ifdef WITH_WEBAPP_HTTPS
|
||||||
cert <- fromRepo gitAnnexWebCertificate
|
cert <- fromRepo gitAnnexWebCertificate
|
||||||
privkey <- fromRepo gitAnnexWebPrivKey
|
privkey <- fromRepo gitAnnexWebPrivKey
|
||||||
ifM (liftIO $ allM doesFileExist [cert, privkey])
|
ifM (liftIO $ allM doesFileExist [cert, privkey])
|
||||||
( return $ Just $ TLS.tlsSettings cert privkey
|
( return $ Just $ TLS.tlsSettings cert privkey
|
||||||
, return Nothing
|
, return Nothing
|
||||||
)
|
)
|
||||||
|
#else
|
||||||
|
return Nothing
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue