Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
REPO-4398 : create nginx for community without digital-workspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
anechifor committed Jun 11, 2019
1 parent 04ca19e commit a86a935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ digital-workspace-ingress:

Bamboo branches:

* Alfresco Digital Workspace / [ACS Nginx Proxy](https://bamboo.alfresco.com/bamboo/browse/ADW-ANP)
* Alfresco Digital Workspace / [ACS Nginx Proxy](https://bamboo.alfresco.com/bamboo/browse/PLAT-ACSING)
9 changes: 1 addition & 8 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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;}
Expand All @@ -34,17 +34,10 @@ http {
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://alfresco:8080;
}

location /workspace/ {
proxy_pass http://digital-workspace:8080/;
}

location /alfresco/ {
proxy_pass http://alfresco:8080;
}
Expand Down

0 comments on commit a86a935

Please sign in to comment.