Skip to content

Complete config to include local REDIS and MEDIA folder in development and production #18

Description

@danieleguido

The secret .env should provide these extra config:

REDIS_HOSTNAME=127.0.0.1
REDIS_PORT=6379
MEDIA_EXPORT_FOLDER=/your/path/to/user-media

Reflected in config_dev/impresso-middle-layer.json as

{
  "media": {
    ...    
    "path": "/media",
    "protectedPath": "/protected-media",
    "exportFolder": "${MEDIA_EXPORT_FOLDER}",
    "services": ["jobs"]
  },
  ...
  "redis": {
    "host": "${REDIS_HOSTNAME}",
    "port": "${REDIS_PORT}"
  },
  "celery": {
    "enable": true,
    "brokerUrl": "redis://${REDIS_HOSTNAME}:${REDIS_PORT}/4",
    "backendUrl": "redis://${REDIS_HOSTNAME}:${REDIS_PORT}/5"
  },
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions