Note, it seems that the “run_tor” command of the “heroku-buildpack-tor” buildpack has a problem with the original Python commands for running ZeroNet with some arguments. In particular, the variable “$PORT” is not recognized by the “exec” bash command used in the buildpack, so it will not be able to start ZeroNet correctly. To solve this problem, use ${PORT} instead of $PORT as shown above. Another simple way to solve this problem is adding a “&” before your command to run ZeroNet, i.e., change the above Procfile to

Note in my fork, I added the config var $CLEARNET_URL which can be used to specify the clearnet URL for your proxy. If you want to set up a public proxy without user restrictions, or a private proxy, you can set the config var $mysiteaddress to the default HelloZero address “1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D”, or just remove the following line for specifying the homepage (which is used for hosting your zsite only) in “bin/compile”

homepage = \${mysiteaddress}

You also need to add the config var $ZERONET_CONFIG. If you want to disallow users to add new sites, you can set the config var $ZERONET_CONFIG to “multiuser_no_new_sites”, otherwise, set it empty.
Finally, you should add the config var $USE_TOR, and set its value to “disable”, “enable” or “always” depending on how you want to use Tor.