greenlock-express.js | Free SSL and Automatic HTTPS | TLS library
kandi X-RAY | greenlock-express.js Summary
kandi X-RAY | greenlock-express.js Summary
Greenlock Express is a Web Server with Fully Automated HTTPS and renewals. You define your app and let Greenlock handle issuing and renewing Free SSL Certificates.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of greenlock-express.js
greenlock-express.js Key Features
greenlock-express.js Examples and Code Snippets
Community Discussions
Trending Discussions on greenlock-express.js
QUESTION
I have an app with the following structure:
- An R Shiny app which functions as a UI and it lets the user upload files and stores them on a gcePersistentDisk.
- A node.js server which reads those files on the gcePersistentDisk processes them and provides an API for the Shiny app to retrieve the results.
This runs in a GKE cluster with the following structure:
- a StatefulSet with a pod containing two containers to allow simultaneous access for both the client and the server to the volume.
- a headless service for the StatefulSet.
- an Ingress with a fixed IP to where the domain points.
- a NodePort as a backend for the Ingress with the selector pointing to the 0th pod of the StatefulSet
At least this is what I did to make this work, I'm not too good in DevOps or networking in general. Now the client came up with a request that a third party app would also use the node.js API but it wishes to do so on https.
My first try was to use greenlock-express.js, however, it needs a public facing IP, but the server can only see it's cluster IP. I don't know if this could/should be changed and if not what other approaches should I take?
Thanks!
YAML's
...ANSWER
Answered 2019-May-02 at 10:54By default Nginx Ingress Controller
serves on port "HTTP/80"
and "HTTPS/443"
regardless backend protocol and port.
So in your case, you don't have to change anything to use HTTPS protocol for your backend, if you just use Nginx Ingress Controller out of the box
For example I have Ingress Controller service as below serving on port 80
and 443
which created when deployed Nginx Controller
QUESTION
I'm new to Node and I want my website, dacio.app, working with subdomains for my college projects using vhost.
However, I need to have it secured due to the requirement for .app domains, so I'm using greenlock-express to automate it.
Don't be frontin', yo! TLS SNI 'giphy.dacio.app' does not match 'Host: potatoes.dacio.app'
I've tried using the vhost example in the repo, but it doesn't look like server-static supports express apps.
Any tips on how to get this working? I keep hearing about reverse proxies, but I'm not sure if it's worth the effort as I don't even know if it would work - would it help?
server.js ...ANSWER
Answered 2018-Sep-20 at 18:36I've switched to using redbird which seems to accomplish everything I was hoping to do.
QUESTION
I have an express
app that was generated using express-generator
and would like to use greenlock-express
with it.
However unlike the example given by greenlock-express
where you have
ANSWER
Answered 2018-Aug-23 at 00:00For security reasons it'll probably be better to use the http/http2 (spdy) wrapper included with greenlock express as the server and require the app into greenlock, instead of trying to manage in directly.
QUESTION
I am trying to run my Express.js with greenlock-express using this example:
https://git.coolaj86.com/coolaj86/greenlock-express.js/src/branch/master/examples/production.js
But I am getting these errors:
...ANSWER
Answered 2018-Aug-20 at 21:45I'm the author of greenlock and your problem is one of two things:
app
must be a function
In your greenlock config you need to define app
as function (req, res) { ... }
For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install greenlock-express.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page