Bench setup nginx creates empty frappe-bench.conf

Hello,
I’m trying to reinstall erpnext but my conf is empty for nginx
/etc/nginx/conf.d/frappe-bench.conf
I tried
bench setup nginx
bench setup production frappe
but without success
Any help ?
Thanks
Pepe

1 Like

Can you try changing/specifying the port and see if it generates a new config? The <site1.local> needs to match your site name. The #lines are “expected outputs”

bench set-nginx-port <site1.local> 8123
#Site site1.local assigned port: 8123
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
bench setup nginx
sudo systemctl reload nginx