Loading nginx-ingress/entrypoint.sh +4 −0 Changes for nginx-ingress/entrypoint.sh: 4 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/sh if [[ $ACS_PLATFORM_URL ]]; then sed -i s%http:\/\/platform:8080%"$REPO_URL"%g /etc/nginx/nginx.conf fi if [[ $ACCESS_LOG ]]; then sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf fi Loading nginx-ingress/nginx.conf +23 −0 Changes for nginx-ingress/nginx.conf: 23 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -24,5 +24,28 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; # Protect access to SOLR APIs location ~ ^(/.*/service/api/solr/.*)$ {return 403;} location ~ ^(/.*/s/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcservice/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcs/api/solr/.*)$ {return 403;} location ~ ^(/.*/proxy/alfresco/api/solr/.*)$ {return 403 ;} location ~ ^(/.*/-default-/proxy/alfresco/api/.*)$ {return 403;} # Protect access to Prometheus endpoint location ~ ^(/.*/s/prometheus)$ {return 403;} location / { proxy_pass http://platform:8080; } location /alfresco/ { proxy_pass http://platform:8080; # If using external proxy / load balancer (for initial redirect if no trailing slash) absolute_redirect off; } } } Loading
nginx-ingress/entrypoint.sh +4 −0 Changes for nginx-ingress/entrypoint.sh: 4 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/sh if [[ $ACS_PLATFORM_URL ]]; then sed -i s%http:\/\/platform:8080%"$REPO_URL"%g /etc/nginx/nginx.conf fi if [[ $ACCESS_LOG ]]; then sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf fi Loading
nginx-ingress/nginx.conf +23 −0 Changes for nginx-ingress/nginx.conf: 23 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -24,5 +24,28 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; # Protect access to SOLR APIs location ~ ^(/.*/service/api/solr/.*)$ {return 403;} location ~ ^(/.*/s/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcservice/api/solr/.*)$ {return 403;} location ~ ^(/.*/wcs/api/solr/.*)$ {return 403;} location ~ ^(/.*/proxy/alfresco/api/solr/.*)$ {return 403 ;} location ~ ^(/.*/-default-/proxy/alfresco/api/.*)$ {return 403;} # Protect access to Prometheus endpoint location ~ ^(/.*/s/prometheus)$ {return 403;} location / { proxy_pass http://platform:8080; } location /alfresco/ { proxy_pass http://platform:8080; # If using external proxy / load balancer (for initial redirect if no trailing slash) absolute_redirect off; } } }