Where can I find the nginx config file for PeerTube?

I’ve looked all over but can’t find it in the documentation. The documentation says it should be in /var/www/peertube but I mounted that directory in my Docker container and couldn’t find it.

In /etc/nginx/sites-available/peertube, perhaps ?

The installation procedure is here: https://docs.joinpeertube.org/#/install-any-os?id=installation
Or here for docker: https://docs.joinpeertube.org/#/install-docker

For a non-docker installation, the documentation says:

sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube

It’s not in either of those folders.

How did you proceed for the installation? Which documentation did you use?

I just followed this minus the Traefik part because I was using Caddy, but now I’m switching to NGINX: https://docs.joinpeertube.org/#/install-docker

The nginx template is here: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube
But I’m not sure it is usable in front of a docker installation (I never used docker, I don’t know exactly how it works).

1 Like

Thanks. No idea why I didn’t find this. I searched for nginx.