Welcome emails sent by Frappe framework are missing the port number

huangapple go评论67阅读模式
英文:

Welcome emails sent by Frappe framework are missing the port number

问题

When using Frappe framework and changing the Nginx port from 80 to 8002 to avoid conflicts, I get broken URLs in all emails sent by the system. The port was changed using bench set-nginx-port 8002. The ports 80 and 8000 are already busy in the VPS.

While I access the system using hostname:port_number, I get all emails as hostname/the-rest-of-url.

The same issue was reported on frappe.io and GitHub, but it's unclear how to solve it.

How can I solve this? Thank you in advance!

英文:

When using Frappe framework and changing the Nginx port from 80 to 8002 to avoid conflicts, I get broken URLs in all emails sent by the system. The port was changed using bench set-nginx-port 8002. The ports 80 and 8000 are already busy in the VPS.

While I access the system using hostname:port_number, I get all emails as hostname/the-rest-of-url.

The same issue was reported on frappe.io and GitHub, but it's unclear how to solve it.

How can I solve this? Thank you in advance!

答案1

得分: 0

请打开 site_config.json 文件并写入以下内容:

{
    "db_name": "your_db_name",
    "db_password": "your_db_password",
    "db_type": "your_db_type",
    "hostname": "http://your_host_name:port_number"
}
英文:

Open site_config.json and write "hostname":"http://<your_hostname>:<your-port-number>". For example:

{
 "db_name": "your_db_name",
 "db_password": "your_db_password",
 "db_type": "your_db_type",
 "hostname": "http://your_host_name:port_number"
}

huangapple
  • 本文由 发表于 2023年5月21日 22:44:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76300455.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定