Skip to main content

TLS

GoCondor gives you the ability to run your app in tls mode (https), you just need to copy your tls certificates my-server-cert.cert and my-server-cert.key to the directory tls at the root directory of the project, next update the tls config in the .env file or inject them to the environment with an external tool

#################################
### TLS ###
#################################
App_USE_HTTPS=true
App_USE_LETSENCRYPT=false
APP_LETSENCRYPT_EMAIL=mail@example.com
App_HTTPS_HOSTS=example.com, www.example.com
App_CERT_FILE_PATH=tls/my-server-cert.crt
App_KEY_FILE_PATH=tls/my-server-cert.key

Let's encrypt auto certificates

Using let's encrypt is fully automated including the renewal of the certificates, you just need to set the config variables in the .env or inject them into the environment with an external tool Below is a sample of the config that will run your app in the https mode using let's encrypt

App_USE_HTTPS=true
App_USE_LETSENCRYPT=true
APP_LETSENCRYPT_EMAIL=mail@example.com
App_HTTPS_HOSTS=example.com, www.example.com
App_CERT_FILE_PATH=tls/my-server-cert.crt
App_KEY_FILE_PATH=tls/my-server-cert.key

Running the app in HTTPS mode,

To run the app in the HTTPS mode, you simply need to compile it after making sure the configuration above is set properly, then run the compiled file and the app will run in the https mode properly.