Cannot upload video "Unknown Error"

My instance uses non standard ports. The SSL port is 8095. I edited the nginx and production.yaml files to reflect this change along with restarting the server. File does not upload at all (the bar does not move past 0%) and a few seconds later it ends with « Unknown Error »

Here is the log entry:
error[26/02/2023, 20:39:42] Client log: Upload failed: Unknown error
{
« tags »: [
« client »
],
« username »: « username »,
« userAgent »: « Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 »,
« url »: « https://domain.com:8095/videos/upload#upload »

Can you display the webserver section of your production.yaml?

From production.yaml

Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)

webserver:
https: true
hostname: ‹ xxxxxxdotcom ›
port: 8095

From nginx config peertube

server {
listen 80;
listen [::]:80;
server_name xxxxxxdotcom;

location /.well-known/acme-challenge/ {
default_type « text/plain »;
root /var/www/certbot;
}
location / { return 301 https://$host$request_uri; }
}

upstream backend {
server 127.0.0.1:9000;
}

server {
listen 8095 ssl http2;
listen [::]:8095 ssl http2;
server_name xxxxxdotcom;

I dont know if it matters but port 80 has not been forwarded outside the local net like 8095

Do you have errors in PeerTube logs?