Subpath deployment - usnistgov/NEMO GitHub Wiki

NEMO can be deployed on a subpath/subfolder nemo, as long as you set the following variables:

  1. in settings.py:
STATIC_URL = '/nemo/static/'
MEDIA_URL = '/nemo/media/'
FORCE_SCRIPT_NAME = '/nemo'
  1. make sure the location in nginx is set to /nemo

  2. and set the environment variable GUNICORN_SCRIPT_NAME to /nemo in docker/docker-compose