Make mayan-edms work in a subdirectory
Currently I am unable to get mayan working in a subdirectory. e.g. my.domain.com/mayan (see also the mayan forum: https://forum.mayan-edms.com/viewtopic.php?f=7&t=5665)
Suggestion (in the forum) was to add ORGANIZATIONS_URL_BASE_PATH and ORGANIZATIONS_INSTALLATION_URL to my supervisor mayan.conf but I have the feeling they do not do anything as all internal links still point to the root of the uri e.g. with the supervisor example below ...
[supervisord]
environment=
PYTHONPATH="/data/.envs/mayan/mediauser_settings",
DJANGO_SETTINGS_MODULE=mayan.settings.production,
ORGANIZATIONS_URL_BASE_PATH="docs",
ORGANIZATIONS_INSTALLATION_URL="https://www.domain.com/"
MAYAN_ALLOWED_HOSTS='["*"]',
MAYAN_MEDIA_ROOT="/data/.envs/mayan/media",
MAYAN_CELERY_RESULT_BACKEND="redis://{PASS}@127.0.0.1:6379/1",
MAYAN_CELERY_BROKER_URL="redis://{PASS}@127.0.0.1:6379/0",
MAYAN_DATABASES="{default: {ENGINE: django.db.backends.postgresql, HOST: 127.0.0.1, NAME: mayan, PASSWORD: {PASS}, USER: mayan}}"
... i would in order to go to let's say duplicate documents have theoretically the following link in the menu: /docs/duplicates/documents/duplicated/ but all the links are without the docs part e.g. /duplicates/documents/duplicated/
I have tried different approaches to reverse proxy the mayan-edms application with and without https. I have tried this via the combination apache/mod_wsgi directly or using ngnix and apache2 as reverse proxy to gunicorn by binding to port 8000 (127.0.0.1:8000) or via unix-socket (/tmp/mayan.sock).
As example pgadmin4 works in ALL cases above but Mayan-EDMS not.
Please change de code or the documentation (with clear step by step actions) to be able to use mayan in a subdirectory e.g. with different setups (ngnix, apache2, gunicorn, uwsgi?) using unix-socket or port 8000.