Skip to content
Max Tuni edited this page Mar 12, 2017 · 2 revisions

How can I bind the service to a non-default port (e.g. 80)

If you want to use a low numbered port (the privileged ones), you need to grant permissions to the binary that runs YouTuPi, for instance:

sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/python2.7

You need to add the desired port to the youtupi.conf file and restart the service: nano ~/youtupi/youtupi.conf

"port": 80

To apply this changes, save the file and restart the YouTuPi daemon.

Can the service be reached using the IPv6 stack?

By default, the service listens to any IPv4 incoming client: 0.0.0.0 is the default bind. If you prefer to use the IPv6 stack, the equivalent config would be: nano ~/youtupi/youtupi.conf

"host": "::"