Skip to content

add option to run hoogle server over TLS#156

Merged
ndmitchell merged 1 commit into
ndmitchell:hoogle4from
kuk0:https
Feb 23, 2016
Merged

add option to run hoogle server over TLS#156
ndmitchell merged 1 commit into
ndmitchell:hoogle4from
kuk0:https

Conversation

@kuk0

@kuk0 kuk0 commented Feb 22, 2016

Copy link
Copy Markdown
Contributor

hoogle server --https --cert="my_cert.pem" --key="my_key.pem" serves the hoogle pages over TLS

tested with a self-generated certificate:
screen shot 2016-02-22 at 4 38 43 pm

  • are we worried about pulling in this dependency?
  • i have no idea whether this depends on particular versions of some packages
  • if this is useful, i can also modify hoogle5 to support https

Comment thread src/CmdLine/Type.hs
, repeat_ :: Int
, queryChunks :: [String]
, queryParsed :: Either ParseError Query
, queryText :: String

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I prefer my indentation style as it was originally. Not too fussed for pushing onto the Hoogle 4 branch, more a note for anything you submit to Hoogle 5.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure... Data and Convert below have the space so i thought i was keeping the style...

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, fair enough, I guess you are being tripped up by my past inconsistencies - can't ask for more than keeping the style consistent, whatever it might be!

@ndmitchell

Copy link
Copy Markdown
Owner

Looks good to me - the dependency on warp-tls looks very minor, since all its dependencies are already dependencies of Hoogle, so the total increase in dependencies is small. A patch to Hoogle 5 would be most welcome.

ndmitchell added a commit that referenced this pull request Feb 23, 2016
add option to run hoogle server over TLS
@ndmitchell
ndmitchell merged commit 1e6009d into ndmitchell:hoogle4 Feb 23, 2016
@kuk0
kuk0 deleted the https branch February 23, 2016 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants