Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit ab3d389

Browse files
edmorleycyberdelia
authored andcommitted
Add support for controlling stunnel log debug level (#22)
Is a no-op if not set by the user, since level `notice` is the stunnel default. See: https://www.stunnel.org/static/stunnel.html#debug-LEVEL Copied from heroku-buildpack-pgbouncer: https://github.com/heroku/heroku-buildpack-pgbouncer/blob/a0601119857fd9170c7bfc64231c29cac8ea143e/bin/gen-pgbouncer-conf.sh#L32
1 parent 7c9515c commit ab3d389

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ to any process in the Procfile to run stunnel alongside that process.
6363
Some settings are configurable through app config vars at runtime:
6464

6565
- ``STUNNEL_ENABLED``: Default to true, enable or disable stunnel.
66+
- ``STUNNEL_LOGLEVEL``: Default is `notice`, set to `info` or `debug` for more verbose log output.
6667
- ``STUNNEL_FORCE_TLS``: Default is unset. Set this var, to force TLSv1 on cedar-10.
6768

6869
### Multiple Redis Instances

bin/stunnel-conf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ options = NO_SSLv3
2424
TIMEOUTidle = 86400
2525
${STUNNEL_FORCE_SSL_VERSION}
2626
ciphers = HIGH:!ADH:!AECDH:!LOW:!EXP:!MD5:!3DES:!SRP:!PSK:@STRENGTH
27+
debug = ${STUNNEL_LOGLEVEL:-notice}
2728
EOFEOF
2829

2930
for URL in $URLS

0 commit comments

Comments
 (0)