Thanks for the pointers.
I will see what I can accomplish messing with the erpnext-nginx container configuration, but I would really love to hear from someone that has actually set up ERPNext on a suburl. I’ll give it a shot, but I don’t think that tweaking nginx is going to really help.
As for mutlitenancy, the link you sent doesn’t seem to be applicable to what I’m trying to do. As I understand frappe’s terminology, I’m running a single “bench” (one instance of frappe and erpnext), so I’m not doing “multitenancy” at that level. We already have DNS mutlitenancy (many logical servers handled by the same nginx instance(s)) taken care of at a level way above web apps. For ERPNext, if I want another instance, I’ll spin up another set of completely independent docker containers. But that said, I’ll take another look at the frappe docs you linked too and see if I missed something that would help here. I was hoping I wouldn’t have to become a frappe expert just to set a URL subpath!
What I meant about email is that if ERPNext ever needs to generate an email that says “click here https://projects.example.com/erpnext/reset_password
” or something, it needs some way to know that URL.
Anyway, thanks again for the response. If it helps for context, I’m a computer engineer with over 25 years of experience. I’m very familiar with nginx, docker, and web apps in general. I’ve dabbled in Python WSGI, and played with gunicorn a little, but I’m a newbie there. I’ve never used (or heard of frappe) except in the current context of setting up erpnext.
To give some more examples of what I’m trying to figure out:
- In taiga, this is configured in their docker setup by setting “TAIGA_SUBPATH”: “/taiga” in their docker-compose.yml
- In bugzilla, this is configured by setting urlbase to “/bugzilla” in their localconfig.
- In dockwiki, this is configured by setting basedir to “/docuwiki” in their online admin settings.
- In gitlab, this is configured by setting their relative_url_root to “/gitlab” in several of their config yml files.
- In openproject, this is configured by setting rails_relative_url_root to “/openproject” in their configuration.yml file.
All of these of course require some setting in their frontend nginx, but the app itself still needs to know this information. All of these are well-documented and easy to find with a simple web search.
I’ve spent hours looking for how to make this similar setting in ERPNext / Frappe. I haven’t yet been successful, which makes me think either I’m missing something obvious (in which case, hopefully someone here can educate me), or ERPNext / Frappe don’t have a way to easily support this, in which case I’ll probably file a bug about it.