dunglas / vulcain

🔨 Fast and idiomatic client-driven REST APIs.
https://vulcain.rocks
GNU Affero General Public License v3.0
3.52k stars 104 forks source link

HTTP and HTTPS Vulcain server question #71

Closed varloc2000 closed 4 years ago

varloc2000 commented 4 years ago

Good day!

The quote from Gateway Server Configuration

If ACME_HOSTS or both CERT_FILE and KEY_FILE are provided, an HTTPS server supporting HTTP/2 connection will be started. If not, an HTTP server will be started (not compatible with HTTP/2 Server Push, and not secure).

From quote above I made assumption that HTTPS and HTTP servers can not work simultaneously.

And here in an example of how to start vulcain using docker Install The Gateway Server/Docker Image

    -e UPSTREAM='http://your-api' -e ACME_HOSTS='example.com' \
    -p 80:80 -p 443:443 \
    dunglas/vulcain

In example above, both - http (80) and https (443) ports are forwarded. Does that mean that both versions of server will run same time?

dunglas commented 4 years ago

Yes. And HTTP redirects to HTTPS.