You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add SSL/TLS support for secure connections
- Add environment variables for SSL configuration
- Implement conditional SSL server startup based on configuration
* Add additional SSL/TLS config options
- Added a way to configure cipher suites
- Added a way to configure TLS min version
* Change SSL config variables to use file paths and improve test coverage
* Remove t.Pararell() from config test
* Add detailed SSL/TLS configuration documentation to README
---------
Co-authored-by: chanyongkit <[email protected]>
|`ENABLE_SSL`| Enable SSL/TLS for the HTTP server (TRUE or FALSE) |`FALSE`|
107
+
|`SSL_CERT_FILE_PATH`| File path to the SSL certificate file (required when ENABLE_SSL=TRUE) |`""`|
108
+
|`SSL_KEY_FILE_PATH`| File path to the SSL private key file (required when ENABLE_SSL=TRUE) |`""`|
109
+
|`SSL_CIPHER_LIST`| Comma-separated list of SSL cipher suites to use | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_256_CBC_SHA |
110
+
|`SSL_MIN_VERSION`| Minimum TLS version (1.0, 1.1, 1.2, 1.3) |`1.2`|
111
+
112
+
When `ENABLE_SSL` is set to `TRUE`, you must provide valid paths to both certificate and key files. Example:
113
+
114
+
```sh
115
+
ENABLE_SSL=TRUE
116
+
SSL_CERT_FILE_PATH=/path/to/certificate.crt
117
+
SSL_KEY_FILE_PATH=/path/to/private.key
118
+
```
119
+
120
+
For security reasons, TLS 1.2 is configured as the minimum supported version by default. You can modify the TLS version and cipher suites based on your security requirements.
121
+
100
122
All configuration variables can be checked in the [config directory](./config/).
0 commit comments