-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname Configuration Issues for Print Formats and Links with docker-compose (pwd.yml) or easy-install.py #1547
Comments
This will not be fixed by me, Whatever I could have done I managed to post on forum. If someone finds solution, do share. requirements:
sample nginx config that uses map module mentioned here:
then use |
Adding |
Thank you, @NagariaHussain and @revant, for addressing this issue. I’ve spent months, including this entire weekend, trying to get this setup to work. Unfortunately, even after your commit (#1552), I’m still facing challenges. I built a custom image with the latest changes using the easy-install.py script. When I set the host_name to https://erp.example.com/, it doesn't work as expected. The setup only works if I use frontend:8080 or wildcard URLs like https://*.erp.example.com or even *https://sdad.fasfasf.com, which seems unconventional. My primary goal is to have a simple, production-ready Docker Compose setup for ERPNext. Perhaps using a single Frappe container (similar to the dev mode configuration) would be more feasible. Currently, I’m using also 'Nginx Proxy Manager' and 'Cloudflared tunnel' for routing and exposing the site to the internet. If possible, could you share detailed step-by-step instructions, an example Docker Compose file, or even a short video guide? It would be incredibly helpful. Thank you again for your time and efforts! Below is the Docker Compose configuration generated by easy-install.py for your reference:
|
Both socketio and print pdf download is working here. Check video at end. |
uhm uhm... idk if this is even a valuable input, but I have a Github gist with my findings. I do not think I have encountered the same exact problems that you have, but I did run into not being able to access the site not in localhost. I think here is what you need to do:
I have a working docker compose .yaml file in said gist as well. Though, please follow the instructions first before using it. My thoughts and observations are also in said gist. I hope this helps! Sincerely yours, your eyebag-ridden noobie dev |
oh god, its almost 3am in here again... anwwwww If you want to use your existing settings, then I guess we could make it work. This is according to my Github gist, still:
And I think i can finally sleep... good night guys... |
Hostname Configuration Issues for Print Formats and Links with
docker-compose
(pwd.yml
) oreasy-install.py
Description
When using
docker-compose
(pwd.yml
) oreasy-install.py
, thehost_name
must be set to the frontend service's Docker-assigned IP and port, or the service name, for print formats and email attachments to work.For example, this command resolves the issue for print formats and attachments:
However, this causes links in emails and/others places to use
http://frontend:8080/...
instead of the actual domain name likehttps://sub.domain.com/...
.Expected Behavior
https://sub.domain.com/...
).host_name
to be set tofrontend:8080
.Actual Behavior
host_name
is set tofrontend:8080
.frontend:8080
inhost_name
.Environment
pwd.yml
easy-install.py
The text was updated successfully, but these errors were encountered: