This commit is contained in:
Markos Gogoulos
2025-11-15 15:19:52 +02:00
parent b2b8035984
commit b816a12be1
4 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@@ -17,7 +17,7 @@ static/mptt/
static/rest_framework/ static/rest_framework/
static/drf-yasg static/drf-yasg
cms/local_settings.py cms/local_settings.py
deploy/docker/local_settings.py config/local_settings.py
yt.readme.md yt.readme.md
/frontend-tools/video-editor/node_modules /frontend-tools/video-editor/node_modules
/frontend-tools/video-editor/client/node_modules /frontend-tools/video-editor/client/node_modules

View File

@@ -91,8 +91,8 @@ WORKDIR /home/mediacms.io/mediacms
# Copy imagemagick policy for sprite thumbnail generation # Copy imagemagick policy for sprite thumbnail generation
COPY config/imagemagick/policy.xml /etc/ImageMagick-6/policy.xml COPY config/imagemagick/policy.xml /etc/ImageMagick-6/policy.xml
# Copy local_settings.py from deploy/docker to cms/ for default Docker config # Copy local_settings.py from config to cms/ for default Docker config (if exists)
RUN cp deploy/docker/local_settings.py cms/local_settings.py RUN cp config/local_settings.py cms/local_settings.py 2>/dev/null || true
# Create www-data user directories and set permissions # Create www-data user directories and set permissions
RUN mkdir -p /var/run/mediacms && \ RUN mkdir -p /var/run/mediacms && \

View File

@@ -1,7 +1,7 @@
# MediaCMS: Document Changes for DEIC # MediaCMS: Document Changes for DEIC
## Configuration Changes ## Configuration Changes
The following changes are required in `deploy/docker/local_settings.py`: The following changes are required in `config/local_settings.py`:
```python ```python

View File

@@ -46,7 +46,7 @@ Before beginning, ensure the following:
## Step 1: Configure MediaCMS for SAML ## Step 1: Configure MediaCMS for SAML
The first step in enabling SAML authentication is to modify the `local_settings.py` (for Docker: `./deploy/docker/local_settings.py`) file of your MediaCMS deployment. Add the following configuration block to enable SAML support, role-based access control (RBAC), and enforce secure communication settings: The first step in enabling SAML authentication is to modify the `local_settings.py` (for Docker: `./config/local_settings.py`) file of your MediaCMS deployment. Add the following configuration block to enable SAML support, role-based access control (RBAC), and enforce secure communication settings:
```python ```python
USE_RBAC = True USE_RBAC = True
@@ -292,7 +292,7 @@ Another issue you might encounter is an **infinite redirect loop**. This can hap
https://<MyDomainName>/accounts/saml/mediacms_entraid/login/ https://<MyDomainName>/accounts/saml/mediacms_entraid/login/
``` ```
* Add the following line to `./deploy/docker/local_settings.py`: * Add the following line to `./config/local_settings.py`:
```python ```python
LOGIN_URL = "/accounts/saml/mediacms_entraid/login/" LOGIN_URL = "/accounts/saml/mediacms_entraid/login/"