[cas] Bump to lastest version
This commit is contained in:
parent
8325856cb3
commit
4d141b2533
5 changed files with 11 additions and 5 deletions
|
@ -16,6 +16,7 @@ Les fichiers suivant ne doivent être lisibles que par root :
|
||||||
* grafana/ldap.toml
|
* grafana/ldap.toml
|
||||||
* codimd/docker-compose.yml
|
* codimd/docker-compose.yml
|
||||||
* etherpad/settings.json
|
* etherpad/settings.json
|
||||||
|
* django-cas/docker-compose.yml
|
||||||
|
|
||||||
Mettez dedans les mots de passe de base de données ou du LDAP.
|
Mettez dedans les mots de passe de base de données ou du LDAP.
|
||||||
|
|
||||||
|
@ -26,4 +27,5 @@ Mettez dedans les mots de passe de base de données ou du LDAP.
|
||||||
* 8082 -> Grafana
|
* 8082 -> Grafana
|
||||||
* 8083 -> PrivateBin
|
* 8083 -> PrivateBin
|
||||||
* 8084 -> EtherPad
|
* 8084 -> EtherPad
|
||||||
|
* 8085 -> Django CAS server
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,19 @@
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
python3-django-cas-server \
|
python3-pip \
|
||||||
|
python3-django \
|
||||||
|
python3-lxml \
|
||||||
|
python3-requests \
|
||||||
|
python3-requests-futures \
|
||||||
|
python3-six \
|
||||||
python3-psycopg2 \
|
python3-psycopg2 \
|
||||||
python3-whitenoise \
|
python3-whitenoise \
|
||||||
python3-ldap3 \
|
python3-ldap3 \
|
||||||
gunicorn3
|
gunicorn3
|
||||||
|
|
||||||
|
RUN pip3 install django-cas-server
|
||||||
|
|
||||||
COPY ./code /code/
|
COPY ./code /code/
|
||||||
WORKDIR /code/
|
WORKDIR /code/
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
|
@ -135,7 +135,7 @@ STATIC_URL = '/static/'
|
||||||
|
|
||||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
|
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, "static_files/")
|
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
|
||||||
|
|
||||||
CAS_AUTH_CLASS = "cas_server.auth.LdapAuthUser"
|
CAS_AUTH_CLASS = "cas_server.auth.LdapAuthUser"
|
||||||
CAS_LDAP_SERVER = os.getenv('DJANGO_CAS_LDAP_SERVER')
|
CAS_LDAP_SERVER = os.getenv('DJANGO_CAS_LDAP_SERVER')
|
||||||
|
@ -143,8 +143,6 @@ CAS_LDAP_USER = os.getenv('DJANGO_CAS_LDAP_USER')
|
||||||
CAS_LDAP_PASSWORD = os.getenv('DJANGO_CAS_LDAP_PASSWORD')
|
CAS_LDAP_PASSWORD = os.getenv('DJANGO_CAS_LDAP_PASSWORD')
|
||||||
CAS_LDAP_BASE_DN = os.getenv('DJANGO_CAS_LDAP_BASE_DN')
|
CAS_LDAP_BASE_DN = os.getenv('DJANGO_CAS_LDAP_BASE_DN')
|
||||||
|
|
||||||
CAS_LOGO_URL = "/static/auro.png"
|
|
||||||
|
|
||||||
CAS_INFO_MESSAGES_ORDER = ["cas_explained"]
|
CAS_INFO_MESSAGES_ORDER = ["cas_explained"]
|
||||||
|
|
||||||
CAS_NEW_VERSION_HTML_WARNING = False
|
CAS_NEW_VERSION_HTML_WARNING = False
|
||||||
|
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
|
@ -23,7 +23,6 @@ services:
|
||||||
DJANGO_DB_PASSWORD: caspass
|
DJANGO_DB_PASSWORD: caspass
|
||||||
DJANGO_SECRET_KEY: "Please change me in production !"
|
DJANGO_SECRET_KEY: "Please change me in production !"
|
||||||
DJANGO_HOST: localhost
|
DJANGO_HOST: localhost
|
||||||
DJANGO_DEBUG: "false"
|
|
||||||
DJANGO_CAS_LDAP_SERVER: "re2o-ldap.adm.auro.re"
|
DJANGO_CAS_LDAP_SERVER: "re2o-ldap.adm.auro.re"
|
||||||
DJANGO_CAS_LDAP_USER: "cn=cas,ou=service-users,dc=auro,dc=re"
|
DJANGO_CAS_LDAP_USER: "cn=cas,ou=service-users,dc=auro,dc=re"
|
||||||
DJANGO_CAS_LDAP_PASSWORD: "Change me in prod !"
|
DJANGO_CAS_LDAP_PASSWORD: "Change me in prod !"
|
||||||
|
|
Loading…
Reference in a new issue