ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Links to download file backup - ERPNext: v11.1.47 (master)

backup

#1

Hi, I want to set the download link to the correct domain, however the current download link shows: http://site1.local:8000/backups/20190812_221815-site1_local-files.tar.
The address //site1.local: etc. is not the correct domain address, where ErpNext is running.

How/where do I set the correct download link.
Thanks for your help.


#2

you can use instance IP:8000/path/to/file
or change site name to proper domain name


#3

Change the nginx.conf file.

cd frappe-bench/config
vim nginx.conf

find

server {
        listen 80;
        server_name
                site1.local
                ;
        root /home/frappe/frappe-bench/sites;

Change site1.local to your domain name


#4

My file in
/opt//erpnext/config/nginx.conf


#5

Thanks for your suggestions. I omitted to mention, that Erpnext runs in Docker.

Hence checking through the image, I could not find any settings, which put the right download address in the email message “Please use following links to download file backup”.

The links below is typically the docker location. Where can I set the proper address?

Public Files Backup: http://site1.local:8000/backups/20190813_210816-site1_local-files.tar
Private Files Backup: http://site1.local:8000/backups/20190813_210816-site1_local-private-files.tar

Meanwhile I did found a reference to “site1.local” under “/frappe-bench/sites/currentsite.txt” which containers “site1.local”. However unclear is yet where this address is set?

Thanks for your help


#6

you just change in nginx.conf no need to change currentsite.txt