Finally, I have left it as follows:
webserver:
https: false
hostname: '10.241.247.127'
port: 9000
I don’t know if there are problems due to being local and not using ‹ https › or if it also has something to do with what is referenced in this post.
With the command « journalctl -feu peertube » I could see that a library (libfdk-aac.so.2) used by ffmpeg was missing, since the message « libfdk-aac.so.2 is missing » appeared. I saw this thanks to a post of yours where you forced to use HLS.
With all these changes, it seems that the server is working correctly and uploading/playing all the videos well, although I will continue testing.
@JohnLivingston Thank you very much for your patience and help, really. It is nice to receive help like this in a forum.