Frappe/erpnext deploy with nomad: proxy/upstream not working

frappe-bench will know which site to serve from the sites directory as per the host header.

if you have your.site.name under your sites directory then try,

curl -H "Host: your.site.name" -s "http://192.168.1.114:28831/api/method/ping"

you will get {"message":"pong"}.

If you cannot access the site like this? you need ip:port access or some other domain pointing to existing site?

  • you can override, host header at porxy/lb level as done here
  • you can set the site as default site to serve from bench, in case your bench only serves 1 site then you can set it to default. pwd.yml does this with --set-default here
  • if you need advance nginx config then mount template at /templates/nginx/frappe.conf.template and it will be used to generate the nginx config when starting the container. Default template is like this
1 Like