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
Copy file name to clipboardExpand all lines: README.md
+13
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ This is the complete complete list of environmental variables that can be set.
52
52
| CACHE_EXPIRESIN | No | 3600 |[Max age in seconds](https://github.com/fastify/fastify-caching)|
53
53
| CACHE_SERVERCACHE | No | undefined | Max age in seconds for [shared cache](https://github.com/fastify/fastify-caching) (i.e. CDN) |
54
54
| RATE_MAX | No | undefined | Requests per minute [rate limiter](https://github.com/fastify/fastify-rate-limit) (limiter not used if RATE_LIMIT not set) |
55
+
| SSL_ROOT_CERT_PATH | No | undefined | Path to a CA certificate if using TLS/SSL |
55
56
56
57
57
58
### Step 3: fire it up!
@@ -151,3 +152,15 @@ map.on('load', function() {
151
152
### Changes require a Restart
152
153
153
154
If you modify code or add a route, dirt will not see it until dirt is restarted.
155
+
156
+
### TLS/SSL
157
+
158
+
If you see an error like
159
+
160
+
```
161
+
no pg_hba.conf entry for host <host>, user <user>, database <database>, no encryption
162
+
```
163
+
164
+
you made need to connect to your server over SSL. Obtain a CA certificate and set `SSL_ROOT_CERT_PATH=<path to the certificate>` in `.env`.
165
+
166
+
If you can't get a certificate or want to bypass the error, you can try setting `NODE_TLS_REJECT_UNAUTHORIZED=0`. Note that this is unsafe and is not recommended in production.
0 commit comments