Skip to content
Push stunnel into your buildpack to enable you to create secure client connections out to other resources.
Branch: master
Clone or download
Pull request Compare This branch is 4 commits ahead, 4 commits behind timshadel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Heroku buildpack: stunnel

This is a Heroku buildpack that supplies stunnel and is meant to be used as a multi-buildpack. It uses stunnel, and was extracted from the pgbouncer buildpack.


Example usage:

$ ls -a
Procfile  package.json  web.js  .buildpacks

$ heroku config:add BUILDPACK_URL=

$ cat .buildpacks

$ cat conf/stunnel.conf
// your stunnel config file

$ cat Procfile
web: node web.js

$ git push heroku master
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> Multipack app detected
=====> Downloading Buildpack:
=====> Detected Framework: stunnel
       Using stunnel version: 4.56
-----> Fetching and vendoring stunnel into slug
-----> Generating the startup script
       stunnel will use config at /app/conf/stunnel.conf at boot
-----> stunnel done
=====> Downloading Buildpack:
=====> Detected Framework: Node.js
-----> Node.js app detected
-----> Vendoring node 0.10.6
-----> Installing dependencies with npm 1.2.21
       express@3.2.4 ./node_modules/express
       ├── mime@1.2.2
       ├── qs@0.3.1
       └── connect@1.6.2
       Dependencies installed

The buildpack will install and configure stunnel to start at dyno boot reading the config from $HOME/conf/stunnnel.conf.

If you don't want a startup file generated

heroku config:add STUNNEL_STARTUP_FILE=NO
heroku labs:enable user-env-compile

For more info, see

You can’t perform that action at this time.