question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Are there any plans to implement an HTTPS setup? As it currently stands, it is (as far as I can tell) no way to initialize GraphQLServer with HTTPS, or the https module for that matter.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
douglaseggletoncommented, Mar 14, 2018

This could be passed as a property to the start method to have the option to create a secure server instance. 💫

i.e.

server.start({
  ...opts,
  https: {
    key: fs.readFileSync(keyPath),
    cert: fs.readFileSync(certPath)
  }
});

e.g. https://github.com/douglaseggleton/graphql-yoga/commit/c9252cf341e524297522768fa0d6cbef2d809e4e

2reactions
schicklingcommented, Mar 14, 2018

While I completely agree that using a proxy is the preferred solution (especially given today’s cloud offering like AWS API Gateway, now etc), I still think that this shouldn’t be a entry barrier/blocker for people like @douglaseggleton or @Gipphe.

Let’s try to see whether we can also support HTTPS without making graphql-yoga more complicated to use/understand. Does someone have some API suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTPS - Wikipedia
Hypertext Transfer Protocol Secure (HTTPS) is an extension of the Hypertext Transfer Protocol (HTTP). It is used for secure communication over a computer ......
Read more >
What is HTTPS? - Cloudflare
Hypertext transfer protocol secure (HTTPS) is the secure version of HTTP, which is the primary protocol used to send data between a web...
Read more >
Enabling HTTPS on your servers - web.dev
Enabling HTTPS on your servers is critical to securing your webpages.
Read more >
The HTTPS-Only Standard
HTTPS verifies the identity of a website or web service for a connecting client, and encrypts nearly all information sent between the website...
Read more >
What is HTTPS? - SSL.com
HTTPS (Hypertext Transfer Protocol Secure) is a secure version of the HTTP protocol that uses the SSL/TLS protocol for encryption and authentication.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found