R
Railway2y ago
Jimmy

Railway built in railway environment variables for Let's Encrypt TLS certificate

Hi there, I'm working on a go server and reading that railway automatically generates a certificate using Let's Encrypt. Is there a way to access this via an environment variable? I would like to use the certificate to serve https on the go server.
Solution:
You won’t need to access them. The server you build will automatically serve https with the built in cert
Jump to solution
13 Replies
Percy
Percy2y ago
Project ID: N/A
Brody
Brody2y ago
not possible
Solution
MantisInABox
MantisInABox2y ago
You won’t need to access them. The server you build will automatically serve https with the built in cert
Brody
Brody2y ago
took the words out of my mouth all you need to do is run an http 1.1 server
MantisInABox
MantisInABox2y ago
And if you use cloudflare for your dns, you can turn on full ssl and you are golden
Jimmy
JimmyOP2y ago
Oh wow thats interesting. So I dont have to include any code on the server to explicitly serve with TLS?
MantisInABox
MantisInABox2y ago
Nope. None
Brody
Brody2y ago
in fact, if you where to run an https server, it would not even work
Brody
Brody2y ago
youd get this message if you tried running an https server
Jimmy
JimmyOP2y ago
I see. Thank you both for the quick response. Glad I asked
MantisInABox
MantisInABox2y ago
That’s what we are here for
Brody
Brody2y ago
no problem!
MantisInABox
MantisInABox2y ago
Brody more than me. But, you get it
Want results from more Discord servers?
Add your server