Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

https dosen't work #13

@sasivarunan

Description

@sasivarunan

my dir includes
Dockerfile app.yaml package.json server.js static
and static dir has crt and key files

app.yaml has
handlers:

  • url: /(..(html|css|key|crt))
    static_files: static/\1
    upload: static/(.
    .(html|css|key|crt))
  • url: .*
    script: app.js

I'm taking options value for https as referred here http://nodejs.org/api/https.html
var options = {
key: fs.readFileSync('static/ssl.key'),
cert: fs.readFileSync('static/ssl.crt')
};
var secureServer = require('https').createServer(options,app).listen(8443);
var server = require('http').createServer(app).listen(8080);
app.get('/', function(req, res) {
res.send('Hello, world ');
});

if i try node server.js
https://localhost:8443 works fine (Identity not verified, as i'm running locally)

but when i try to run this in gcloud preview app run .
only localhost:8080 works https doesn't. (no webpage found.)
How do i get this working? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions