diff --git a/.env b/.env index fb511c7..af14c9d 100644 --- a/.env +++ b/.env @@ -1,3 +1,7 @@ -BASEDIR=~ -ALFRESCO_DIR=${BASEDIR}/alfresco +EXTERNAL_RESOURCE_DIR=~ +ALFRESCO_DIR=${EXTERNAL_RESOURCE_DIR}/alfresco ALFRESCO_LICENSE_DIR=${ALFRESCO_DIR}/license + +PROXY_PROTOCOL=http +PROXY_HOST=localhost +PROXY_PORT=8080 diff --git a/docker-compose.yml b/docker-compose.yml index fc02630..8f3df2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,11 @@ services: image: alfresco/alfresco-content-repository:latest environment: JAVA_OPTS: " + -Ddb.driver=org.postgresql.Driver -Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco + -Dalfresco.host=${PROXY_HOST} + -Dalfresco.port=${PROXY_PORT} + -Dalfresco.protocol=${PROXY_PROTOCOL} -Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\" -Ddsync.service.uris=http://localhost:8080/sync " diff --git a/nginx-ingress/nginx.conf b/nginx-ingress/nginx.conf index 67bc5ae..609ecf8 100644 --- a/nginx-ingress/nginx.conf +++ b/nginx-ingress/nginx.conf @@ -20,9 +20,10 @@ http { proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; proxy_pass_header Set-Cookie; # Protect access to SOLR APIs