Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling rtmps properly #460

Open
Ryvix opened this issue Nov 27, 2024 · 0 comments
Open

Enabling rtmps properly #460

Ryvix opened this issue Nov 27, 2024 · 0 comments

Comments

@Ryvix
Copy link

Ryvix commented Nov 27, 2024

While what I did seems to have successfully enabled rtmps support in Peertube, this is more of an inquiry of if I did this the proper way or if there is a better way. I'm also wondering if there will be any issues the way I did it since I am not very familiar with yunohost or peertube and I am noticing that the certs are in a non-standard folder. Maybe the config file I edited will get overwritten?

Maybe if this is a good way to do it then the peertube user could be added to the ssl-certs group by default and rtmps support could be optionally enabled, perhaps by providing a toggle in the UI for enabling it?

Thank you!

Context

  • YunoHost version: 12.0.7

Steps to reproduce

  • Install Peertube through yunohost
  • rtmps is not enabled by default
  • edit /etc/yunohost/apps/peertube/conf/production.yaml:
  rtmps:
    enabled: true

    # Listening hostname/port for RTMPS server
    # '::' to listen on IPv6 and IPv4, '0.0.0.0' to listen on IPv4
    # Use null to automatically listen on '::' if IPv6 is available, or '0.0.0.0' otherwise
    hostname: null
    port: 1936

    # Absolute paths
    key_file: '/etc/yunohost/certs/video.example.com/key.pem'
    cert_file: '/etc/yunohost/certs/video.example.com/crt.pem'

    # Public hostname of your RTMPS server
    # Use null to use the same value than `webserver.hostname`
    public_hostname: null
  • restart peertube
  • error that it has no permission to cert files when trying to enable rtmps
  • run command to add peertube to the ssl-cert group:
    # usermod -aG ssl-cert peertube
  • restart peertube and rtmps is enabled and seems to work fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant