Greetings all,
I am using Erpnext locally with a team and have used Podman for deployment. I am using Caddy for reverse proxy for other systems, and everything works fine, but can I use Caddy for Erpnext? Is there any additional configuration I should do in the container or docker-compose file?
This is what how I am trying to access erpnext with https locally with the Caddy configuration.
Yeah, but that is a docker-compose to run step-ca, a process that acts as Certificate Authority. For now, I have just created both private and public keys, which should be imported to the Erpnext webserver somehow, which is Nginx, I think.
Caddy was even easier since there will be no key exchanges, but I am getting an error on caddy and the page won’t load.
Dec 12 15:27:36 fedora caddy[1437]: {"level":"error","ts":1734006456.8929186,"logger":"http.log.error","msg":"tls: first record does not look like a TLS handshake","request":{"remote_ip":"192.168.4.33","remote_port":"48434","client_ip":"192.168.4.33","proto":"HTTP/2>
In my experience, the other application should have a configuration to connect with Caddy, but I couldn’t find any hint on erpnext.
Hello @revant_one
I posted the same topic on the caddy community and didn’t get a response, so I proceeded with generating a private key and certificate. I added the root CA to the trusted store on my localhost. Following this guide, I just placed those two inside /etc/nginx/conf.d/ssl.
I executed bench setup nginx, and I could confirm the certificate path is added to nginx.conf file. But I am getting the following error on a browser when I am trying to access the erpnext site with my domain (https://myerp.home.net:8085)
SSL_ERROR_RX_RECORD_TOO_LONG
Here is the content of nginx.conf file from frappe-bench/config/nginx.conf:
@revant_one Finally, it worked for me with Caddy. I removed the following section, and it worked for me. I couldn’t find a way to make sure erpnext listens on port 443, so I edited the Caddy configuration file.
Please tell the detailed steps so it will be helpful , how you made compose file changes and caddy file .what is this erp.localdev.net is it site name or something?
localhost is frontend service or what?
I have already shared a link with you; won’t you follow it? As I said, I installed Caddy on my server and then deployed ERPNext through Docker. I have added the domain name that I wanted to access the ERPNext into /etc/hosts. Then I added the Caddy root certificate to the system where I am trying to access ERPNext. That’s the step