question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nginx reverse proxy not working with ERPNext

See original GitHub issue

I’m trying to self-host ERPNext on my home server

Hardware Stack: AMD Ryzen 5th Gen 6 cores with 12 threads CPU 256 m.2 SSD (for boot) 1TB HDD LVM storage mounted on /home 16 GB DDR4 Ram with heat sink GigaByte motherboard board Cool master heat sink for CPU Cool Master SMPS real 450 watts

Server Tech Stack: Ubuntu 22.04 LTS Server Docker Nginx reverse proxy manager for reverse proxy Static ipv6 address managed by cloudfront with a 300 MBPS internet connection

Since I’m using nginx reverse proxy I don’t need Trafeik so I ran the below commands to get ERP Next running without Trafeik

sudo docker compose -f compose.yaml \
  -f overrides/compose.noproxy.yaml \
  -f overrides/compose.mariadb.yaml \
  -f overrides/compose.redis.yaml \
  config > /home/kiatronic/docker_apps/erpnext_gitops/docker-compose.yml

sudo docker compose --project-name erpnext -f ~/docker_apps/erpnext_gitops/docker-compose.yml up -d

sudo docker compose --project-name erpnext exec backend bench new-site erpnext.sozeno.com

Screenshot 2022-09-29 at 1 34 01 AM

I made an entry on Nginx reverse proxy to point to my static server IP address

After this, I created a DNS entry on my Cloudflare dashboard

But when I access the site I get a 504 error

Upon trying to access the site directly through its local LAN IP address with 8080 I get a

Not Found 192.168.. does not exist

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
revantcommented, Oct 25, 2022

Is there anything another config I need to take care of in case I need to swipe out the old docker images and volumes and recreate them?

just the passwords need to be set to more secure ones for db as well as site admin. Close issue if you’ve got it working.

0reactions
solancercommented, Oct 26, 2022

@revant Thanks you for all the help, really appreciate it

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERPNext behind NGINX Reverse Proxy - Deployment
The problem: The ports 80 and 433 needed for ERPNext are already in use. I am trying to port forward with the NGINX...
Read more >
ERPNext 13 Behind a Nginx Reverse Proxy
I have installed ERPNext behind an Nginx reverse proxy. The setup is working with SSL and before DNS Multi-tenant is enabled When the...
Read more >
Nginx not connecting - Install / Update - ERPNext Forum
Hi, I have set up erpnext through bench and started production with the following commands: sudo apt -y install supervisor sudo service ...
Read more >
ERPNext breaks behind Reverse Proxy
This makes me think the problem is with the Synology NAS Reverse Proxy which for some reason stops communicating with the erpnext box....
Read more >
IIS reverse proxy to erpnext server
I have an nginx reverse proxy in front of my ERPNext server, and that works perfectly fine. The reverse proxy is providing the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found