mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-12-26 07:19:04 +01:00
New environment variables for JWT keys
This commit is contained in:
parent
562c8ac71d
commit
3ae494f316
2
.env
2
.env
@ -5,6 +5,8 @@ CLUSTERCOCKPIT_BRANCH=develop
|
||||
APP_CLUSTERCOCKPIT_INIT=true
|
||||
APP_ENVIRONMENT=dev
|
||||
APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
|
||||
APP_JWT_PRIV_KEY="dtPC/6dWJFKZK7KZ78CvWuynylOmjBFyMsUWArwmodOTN9itjL5POlqdZkcnmpJ0yPm4pRaCrvgFaFAbpyik/Q=="
|
||||
APP_JWT_PUB_KEY="kzfYrYy+TzpanWZHJ5qSdMj5uKUWgq74BWhQG6copP0="
|
||||
|
||||
########################################################################
|
||||
# PHP
|
||||
|
@ -73,6 +73,8 @@ services:
|
||||
environment:
|
||||
- APP_CLUSTERCOCKPIT_INIT=${APP_CLUSTERCOCKPIT_INIT}
|
||||
- CLUSTERCOCKPIT_BRANCH=${CLUSTERCOCKPIT_BRANCH}
|
||||
- APP_JWT_PUB_KEY=${APP_JWT_PUB_KEY}
|
||||
- APP_JWT_PRIV_KEY=${APP_JWT_PRIV_KEY}
|
||||
volumes:
|
||||
- ${DATADIR}/symfony:/var/www/symfony:cached
|
||||
- ${DATADIR}/job-archive:/var/lib/job-archive:cached
|
||||
|
@ -38,9 +38,9 @@ http {
|
||||
error_log off;
|
||||
|
||||
gzip on;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
gzip_comp_level 9;
|
||||
gzip_min_length 200;
|
||||
gzip_types text/plain text/html text/css application/json;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
@ -60,6 +60,8 @@ RUN chmod +x /entrypoint.sh
|
||||
ARG APP_ENVIRONMENT
|
||||
ENV APP_ENV=${APP_ENVIRONMENT}
|
||||
ENV APP_SECRET=${APP_SECRET}
|
||||
ENV APP_JWT_PUB_KEY="${APP_JWT_PUB_KEY}"
|
||||
ENV APP_JWT_PRIV_KEY="${APP_JWT_PRIV_KEY}"
|
||||
ENV APP_DEBUG=1
|
||||
ENV REDIS_URL=redis://cc-redis
|
||||
ENV LDAP_URL=ldap://cc-ldap
|
||||
|
@ -76,6 +76,8 @@ pm.max_spare_servers = 3
|
||||
; Make specific Docker environment variables available to PHP
|
||||
env[APP_ENV] = $APP_ENV
|
||||
env[APP_SECRET] = $APP_SECRET
|
||||
env[APP_JWT_PUB_KEY] = $APP_JWT_PUB_KEY
|
||||
env[APP_JWT_PRIV_KEY] = $APP_JWT_PRIV_KEY
|
||||
env[APP_DEBUG] = $APP_DEBUG
|
||||
env[INFLUXDB_URL] = $INFLUXDB_URL
|
||||
env[INFLUXDB_TOKEN] = $INFLUXDB_TOKEN
|
||||
|
Loading…
Reference in New Issue
Block a user