Domain setup for server

Hi, Everyone
@avc
I installed erp on my laptop and now i wanted to configure the production setup linked with a domain, So i can access the site remotely, Please share the steps to link the server with the domain.

ERPNext: v15.27.6 (version-15)

Frappe Framework: v15.29.2 (version-15)

Frappe HR: v15.22.2 (version-15)

Thank You

HI @rs115199789:

Basically, you need to configure DNS on your domain, pointing to your public ip address. Use you domain panel control, adding DNS record for that.

Static public ip address for your connection will be needed too … Maybe a laptop is not the proper server for that :wink:

Hope this helps.

This is a multi step process.

Are you trying to access remotely from the Internet (not on your local LAN)?

Edit /etc/hosts on the laptop and add your domain name(s) like:

127.0.1.1 yourdomain.com erp.yourdomain.com dev.domain.com

If you laptop has a firewall, you’ll need to allow port 80 and/or port 443.
If you want to access from the internet, you’ll need to forward tcp ports 80,443
to your laptop on the firewall/router.
You’ll need DNS A record for your domain pointing to the public IP of your home/office or the the private IP of your laptop if you don’t need access from
outside your network.

You’ll want to set up production and DNS via bench:

bench setup nginx
bench config dns_multitenant on
1 Like