Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL #12

Closed
migonium opened this issue Nov 5, 2015 · 2 comments
Closed

SSL #12

migonium opened this issue Nov 5, 2015 · 2 comments

Comments

@migonium
Copy link

migonium commented Nov 5, 2015

is any setting to provide server with SSL encryption?

@crunchtime-ali
Copy link

You'd have to add the certificate information in the createServer-command in this file: https://github.com/inolen/quakejs/blob/master/bin/web.js

Something like

var privateKey = fs.readFileSync( 'privatekey.pem' );
var certificate = fs.readFileSync( 'certificate.pem' );

https.createServer({
    key: privateKey,
    cert: certificate
}, app).listen(port);

More information: https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener

@migonium
Copy link
Author

migonium commented Dec 1, 2015

Thank you! But there is ws:// protocol used to find dedicated servers and this request fails when server runned over https.

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

No branches or pull requests

3 participants