[Mayan EDMS: 1408] Hosting Mayan EDMS in sub url

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 1408] Hosting Mayan EDMS in sub url

Michael AskMe
I'm having the same trouble as Christoph H. Larsen  posted in Deploying Mayan-EDMS in a Sub-URI.  I'm trying to create a prof of concept at a software re-seller expecting it to be come our document management 
solution but if we can't specify the sub url the solution will become nonviable.  I'm comfortable programming in Python but admittedly very new to Django.  From what I've read this is possible since the update Update references to root ('/') path #40
I just can't make it happen.

My local.py file looks like:

from __future__ import absolute_import


from .base import *

SECRET_KEY = 'am1hjdg*_bew(+%zj^1*=p4z3(9h+q5prto%x_qsmyo6#5l0tf'


DATABASES = {

   'default': {

       'ENGINE': 'django.db.backends.postgresql_psycopg2',

       'NAME': 'mayan',

       'USER': 'mayan',

       'PASSWORD': 'mayan',

       'HOST': 'localhost',

       'PORT': '5432',

   }

}


BROKER_URL = 'redis://127.0.0.1:6379/0'

CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'


#FORCE_SCRIPT_NAME = '/demo'


#BASE_PATH = '/demo'


#STATIC_URL = '/demo/static/'


#MEDIA_URL = '/demo/media/'


and my nginx config looks like:

server {
    listen 80;
    server_name fakeurl.
;

    location /demo {
        include uwsgi_params;
        uwsgi_pass unix:/usr/share/mayan-edms/uwsgi.sock;

        client_max_body_size 30M;  # Increse if your plan to upload bigger documents
        proxy_read_timeout 30s;  # Increase if your document uploads take more than 30$
    }

    location /demo/static {
        alias /usr/share/mayan-edms/mayan/media/static;
        expires 1h;
    }

    location /demo/favicon.ico {
        alias /usr/share/mayan-edms/mayan/media/static/appearance/images/favicon.ico;
        expires 1h;
    }

}

Everything commented out in the local.py file has been attempted but did not resolve my issue.  Any help would be appreciated.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.