Hi

I have an EC2 vm where I want to run two go https servers on different 
ports.

I am using letsencrypt for the certificates and the code is like:

server1.go: log.Fatal(http.Serve(autocert.NewListener("api1.example.com"), 
http.DefaultServeMux))
server2.go: log.Fatal(http.Serve(autocert.NewListener("api2.example.com"), 
http.DefaultServeMux))

I want api1 to listen on port 443 and want api2 to listed on port 8080. Is 
it possible to achieve this via autocert at all ? If not, are there any 
other hacks to get multiple ports exposed from the same machine using 
letsencrypt ? I am deploying server1.go manually (via a systemd script) and 
server2 via a docker container, if it matters.

Any help ?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to