Compare commits
23 Commits
acs-aims
...
aps-persis
Author | SHA1 | Date | |
---|---|---|---|
3a6d3b1c1e | |||
944397b02c | |||
e0e190d987 | |||
fc8a854920 | |||
7e526e0e1e | |||
3c1796b0b4 | |||
dd967a17f2 | |||
27a818fd22 | |||
bcdd5e0525 | |||
2d91d8bc08 | |||
|
ba6a0f70ad | ||
6e0c055222 | |||
912249c388 | |||
20b41bbcb1 | |||
8ccf85d170 | |||
a2619fac7b | |||
70eb1fd7fb | |||
d7ed2df85e | |||
16aa444b19 | |||
7caee29b23 | |||
8a0ccc61a5 | |||
237a8abd62 | |||
f28c16c4fe |
6
.env
6
.env
@@ -1,3 +1,9 @@
|
|||||||
|
ALFRESCO_DIR=~/alfresco
|
||||||
|
ALFRESCO_LICENSE_DIR=~/alfresco/license
|
||||||
|
|
||||||
PROXY_PROTOCOL=http
|
PROXY_PROTOCOL=http
|
||||||
PROXY_HOST=localhost
|
PROXY_HOST=localhost
|
||||||
PROXY_PORT=8080
|
PROXY_PORT=8080
|
||||||
|
|
||||||
|
APS_TAG=2.4.1
|
||||||
|
POSTGRES_TAG=13
|
||||||
|
@@ -3,8 +3,53 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
activiti-app:
|
||||||
|
image: quay.io/alfresco/alfresco-process-services:${APS_TAG}
|
||||||
|
environment:
|
||||||
|
ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
|
||||||
|
depends_on:
|
||||||
|
- postgres-aps
|
||||||
|
volumes:
|
||||||
|
- "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
|
||||||
|
- apsbin-volume:/var/lib/postgresql/data:rw
|
||||||
|
|
||||||
|
activiti-admin:
|
||||||
|
image: quay.io/alfresco/alfresco-process-services-admin:${APS_TAG}
|
||||||
|
environment:
|
||||||
|
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8'
|
||||||
|
ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app
|
||||||
|
depends_on:
|
||||||
|
- postgres-aps-admin
|
||||||
|
- activiti-app
|
||||||
|
|
||||||
|
postgres-aps:
|
||||||
|
image: postgres:${POSTGRES_TAG}
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: activiti
|
||||||
|
volumes:
|
||||||
|
- apsdb-volume:/var/lib/postgresql/data:rw
|
||||||
|
|
||||||
|
postgres-aps-admin:
|
||||||
|
image: postgres:${POSTGRES_TAG}
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: activiti-admin
|
||||||
|
volumes:
|
||||||
|
- apsadmindb-volume:/var/lib/postgresql/data:rw
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
build: ./nginx-ingress
|
build: ./nginx-ingress
|
||||||
image: local/nginx-ingress:base
|
image: local/nginx-ingress:aps
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
depends_on:
|
||||||
|
- activiti-app
|
||||||
|
- activiti-admin
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
apsbin-volume:
|
||||||
|
driver: local
|
||||||
|
apsdb-volume:
|
||||||
|
driver: local
|
||||||
|
apsadmindb-volume:
|
||||||
|
driver: local
|
||||||
|
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [[ $APS_APP_URL ]]; then
|
||||||
|
sed -i s%http:\/\/activiti-app:8080%"$APS_APP_URL"%g /etc/nginx/nginx.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $APS_ADMIN_URL ]]; then
|
||||||
|
sed -i s%http:\/\/activiti-admin:8080%"$APS_ADMIN_URL"%g /etc/nginx/nginx.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $ACCESS_LOG ]]; then
|
if [[ $ACCESS_LOG ]]; then
|
||||||
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
@@ -25,5 +25,35 @@ http {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_pass_header Set-Cookie;
|
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 / {
|
||||||
|
return 301 $scheme://$http_host/activiti-app;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /activiti-app/ {
|
||||||
|
proxy_pass http://activiti-app:8080;
|
||||||
|
|
||||||
|
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||||
|
absolute_redirect off;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /activiti-admin/ {
|
||||||
|
proxy_pass http://activiti-admin:8080;
|
||||||
|
|
||||||
|
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||||
|
absolute_redirect off;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user