Merge branch 'acs-frontend-enterprise' into acs-frontend-enterprise-persist

This commit is contained in:
Brian Long 2021-01-13 11:37:23 -05:00
commit fd30fd4555
3 changed files with 20 additions and 5 deletions

View File

@ -142,15 +142,19 @@ services:
- postgres-acs - postgres-acs
- activemq - activemq
digital-workspace:
image: quay.io/alfresco/alfresco-digital-workspace:latest
proxy: proxy:
build: ./nginx-ingress build: ./nginx-ingress
image: local/nginx-ingress:acs-sync-share image: local/nginx-ingress:acs-sync-share-adw
ports: ports:
- 8080:8080 - 8080:8080
depends_on: depends_on:
- platform - platform
- sync - sync
- share - share
- digital-workspace
volumes: volumes:
shared-file-store-volume: shared-file-store-volume:

View File

@ -4,12 +4,16 @@ if [[ $ACS_PLATFORM_URL ]]; then
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
fi fi
if [[ $ACS_SYNC_URL ]]; then
sed -i s%http:\/\/sync:9090%"$ACS_SYNC_URL"%g /etc/nginx/nginx.conf
fi
if [[ $ACS_SHARE_URL ]]; then if [[ $ACS_SHARE_URL ]]; then
sed -i s%http:\/\/share:8080%"$ACS_SHARE_URL"%g /etc/nginx/nginx.conf sed -i s%http:\/\/share:8080%"$ACS_SHARE_URL"%g /etc/nginx/nginx.conf
fi fi
if [[ $ACS_SYNC_URL ]]; then if [[ $ADW_URL ]]; then
sed -i s%http:\/\/sync:9090%"$ACS_SYNC_URL"%g /etc/nginx/nginx.conf sed -i s%http:\/\/digital-workspace:8080%"$ADW_URL"%g /etc/nginx/nginx.conf
fi fi
if [[ $ACCESS_LOG ]]; then if [[ $ACCESS_LOG ]]; then

View File

@ -49,6 +49,10 @@ http {
absolute_redirect off; absolute_redirect off;
} }
location /sync/ {
proxy_pass http://sync:9090/alfresco/;
}
location /share/ { location /share/ {
proxy_pass http://share:8080; proxy_pass http://share:8080;
@ -56,8 +60,11 @@ http {
absolute_redirect off; absolute_redirect off;
} }
location /sync/ { location /workspace/ {
proxy_pass http://sync:9090/alfresco/; proxy_pass http://digital-workspace:8080;
# If using external proxy / load balancer (for initial redirect if no trailing slash)
absolute_redirect off;
} }
} }
} }