frappe / agent

Works with https://github.com/frappe/press
GNU Affero General Public License v3.0
66 stars 88 forks source link

fix(proxy): Remove conflicting site before adding a new site #117

Open adityahase opened 3 months ago

adityahase commented 3 months ago

This is to avoid failures like this on add/rename site jobs

systemd[1]: Reloading A high performance web server and a reverse proxy server.
nginx[541919]: nginx: [emerg] conflicting parameter "frappemail.frappe.cloud" in /etc/nginx/conf.d/proxy.conf:3722
systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: Reload failed for A high performance web server and a reverse proxy server.

Reference: https://frappecloud.com/app/agent-job/3d4bd1ab06