Compare commits
161 Commits
dbp
...
propagate/
Author | SHA1 | Date | |
---|---|---|---|
188de9d0f3 | |||
6c62fb96e7 | |||
0c8f7f0bfa | |||
58017b4fb3 | |||
6d3ca92357 | |||
54fcdf31b8 | |||
db1917fa40 | |||
3afa0cdc33 | |||
cecbf32b68 | |||
6608b0600c | |||
52c8e24b3a | |||
c8540ca0de | |||
279eb2af9d | |||
0d379094e9 | |||
aff138a697 | |||
8dc083bf2b | |||
a9d29aaf7b | |||
97b9237171 | |||
925d05e41b | |||
99c9621a9f | |||
2ffde7c784 | |||
d7c28f9b6e | |||
924c687250 | |||
3ca58472a3 | |||
8894180ea1 | |||
7b0dd55b4e | |||
dfb0f61088 | |||
1a0d8ba2b2 | |||
a7fa111930 | |||
0e64298361 | |||
5ab1283aab | |||
995fbfb13f | |||
65a2d15c07 | |||
bb6c28f859 | |||
171f67daf0 | |||
d47e68fc70 | |||
7fbe8b5c1f | |||
db6c0f84a9 | |||
b238e3c727 | |||
60572f0c9d | |||
3d14c54688 | |||
cade3f1b3b | |||
29a71867f2 | |||
1929c94880 | |||
c6c8b06331 | |||
d9237cdb78 | |||
25163f428c | |||
2ed89fa708 | |||
bcdd5e0525 | |||
1bd9da2339 | |||
4afb1f3e20 | |||
f0fe828a44 | |||
b5ffc3e6e4 | |||
f32e582608 | |||
0ab7ab7a49 | |||
575aff046e | |||
18d337ffa0 | |||
c2191ef143 | |||
|
54c4f13f8a | ||
942bce286d | |||
1e0b44946e | |||
903e9fdc23 | |||
7d3d00edb2 | |||
33035fb718 | |||
ce372ad731 | |||
75476c4d4e | |||
68f4c70fa3 | |||
3d7c7d3880 | |||
|
947a48dc90 | ||
|
c2e962a2be | ||
|
d15d9d291c | ||
|
ec79404d1c | ||
|
230e7fcf5e | ||
|
180e642ce3 | ||
|
38def362f6 | ||
|
f3d3293e9e | ||
|
2c82f844b1 | ||
|
b805fbbd1a | ||
|
5faa546a0f | ||
|
4f191bcbea | ||
|
96e4ea2d20 | ||
|
b7c883068a | ||
|
ba6a0f70ad | ||
|
f23cda3fd1 | ||
192bd41c1a | |||
|
c76e745e2d | ||
|
fd79be4aed | ||
|
0469d435a4 | ||
b4be2e251c | |||
|
a933edb6bd | ||
dc236b7550 | |||
d87935cd44 | |||
0be038fe07 | |||
25d0633fdb | |||
44b6f26f4f | |||
a388c1d2fb | |||
ca420b43e2 | |||
8be7673ad3 | |||
b124cd027c | |||
af39f367b6 | |||
|
d3c1579905 | ||
|
3b83b005c5 | ||
|
df5d011a3a | ||
|
00335f5795 | ||
|
b757323701 | ||
|
812dead437 | ||
|
e0df60bc8b | ||
|
8b21dcd843 | ||
|
a140d6806f | ||
8aa7067286 | |||
77f2c5e0f1 | |||
366a5121de | |||
919d842d61 | |||
|
7d0eadd920 | ||
912249c388 | |||
|
83c123de08 | ||
6edb220093 | |||
8ccf85d170 | |||
70eb1fd7fb | |||
d7ed2df85e | |||
7caee29b23 | |||
|
cf22527520 | ||
|
6eeef4cfbe | ||
|
58a9db5244 | ||
69481655e8 | |||
fd30fd4555 | |||
d4616bfdb2 | |||
|
3409eb4eec | ||
28e32e34a2 | |||
c7378dd9c2 | |||
6c5f4493dc | |||
4f3da7361a | |||
53404852e1 | |||
75743d2391 | |||
6a8b1e2628 | |||
932159b238 | |||
135739da10 | |||
f1a47aa620 | |||
3d06a59303 | |||
ccbe4de116 | |||
5c25ab9d3d | |||
02a2ec72c0 | |||
720346e9d7 | |||
68e0652872 | |||
b81db4fc0f | |||
c377995a1d | |||
e223fd99a3 | |||
5beadf9f35 | |||
89eec1edec | |||
3db235a532 | |||
24337f3a13 | |||
04988e43dd | |||
f94f3e82e8 | |||
cb5d306478 | |||
abaa41345a | |||
f46dacad9d | |||
0488b3402d | |||
fad6fe1c2a | |||
2789af0bd7 | |||
91da0dedb6 | |||
8d3c4987f0 |
3
.env
3
.env
@@ -4,3 +4,6 @@ ALFRESCO_LICENSE_DIR=~/alfresco/license
|
||||
PROXY_PROTOCOL=http
|
||||
PROXY_HOST=localhost
|
||||
PROXY_PORT=8080
|
||||
IDENTITY_SERVICE_PROTOCOL=http
|
||||
IDENTITY_SERVICE_HOST=auth.example.org
|
||||
IDENTITY_SERVICE_PORT=8080
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
|
||||
#
|
||||
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose
|
||||
version: "2"
|
||||
version: "2.1"
|
||||
|
||||
services:
|
||||
platform:
|
||||
@@ -47,17 +47,27 @@ services:
|
||||
-Dtransform.misc.url=http://transform-engine-aio:8090
|
||||
|
||||
-Ddsync.service.uris=${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/sync
|
||||
|
||||
-Dauthentication.chain=aims:identity-service,builtin:alfrescoNtlm
|
||||
-Didentity-service.authentication.defaultAdministratorUserNames=admin.1
|
||||
-Didentity-service.auth-server-url=${IDENTITY_SERVICE_PROTOCOL}://${IDENTITY_SERVICE_HOST}:${IDENTITY_SERVICE_PORT}/auth
|
||||
|
||||
-Dsystem.content.eagerOrphanCleanup=true
|
||||
-Dsystem.content.orphanProtectDays=0
|
||||
-Djodconverter.enabled=false
|
||||
"
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
- activemq
|
||||
- shared-file-store
|
||||
postgres-acs:
|
||||
condition: service_started
|
||||
activemq:
|
||||
condition: service_started
|
||||
shared-file-store:
|
||||
condition: service_started
|
||||
identity:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- "$ALFRESCO_LICENSE_DIR/acs:/usr/local/tomcat/shared/classes/alfresco/extension/license:ro"
|
||||
- acsbin-volume:/usr/local/tomcat/alf_data:rw
|
||||
|
||||
transform-router:
|
||||
image: quay.io/alfresco/alfresco-transform-router:1.3.1
|
||||
@@ -100,6 +110,16 @@ services:
|
||||
-Dalfresco.host=${PROXY_HOST}
|
||||
-Dalfresco.port=${PROXY_PORT}
|
||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||
-Daims.enabled=true
|
||||
-Daims.realm=alfresco
|
||||
-Daims.resource=acs-share
|
||||
-Daims.authServerUrl=${IDENTITY_SERVICE_PROTOCOL}://${IDENTITY_SERVICE_HOST}:${IDENTITY_SERVICE_PORT}/auth
|
||||
-Daims.sslRequired=none
|
||||
-Daims.publicClient=true
|
||||
-Daims.autodetectBearerOnly=true
|
||||
-Daims.alwaysRefreshToken=true
|
||||
-Daims.principalAttribute=preferred_username
|
||||
-Daims.enableBasicAuth=true
|
||||
"
|
||||
|
||||
postgres-acs:
|
||||
@@ -110,6 +130,8 @@ services:
|
||||
- POSTGRES_USER=alfresco
|
||||
- POSTGRES_DB=alfresco
|
||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
||||
volumes:
|
||||
- acsdb-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
search:
|
||||
image: alfresco/alfresco-search-services:2.0.1
|
||||
@@ -121,10 +143,14 @@ services:
|
||||
- SOLR_SOLR_PORT=8983
|
||||
- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
|
||||
- ALFRESCO_SECURE_COMMS=none
|
||||
volumes:
|
||||
- solrindex-volume:/opt/alfresco-search-services/data:rw
|
||||
|
||||
activemq:
|
||||
image: alfresco/alfresco-activemq:5.15.8
|
||||
mem_limit: 512m
|
||||
volumes:
|
||||
- activemq-volume:/opt/activemq/data:rw
|
||||
|
||||
sync:
|
||||
image: quay.io/alfresco/service-sync:3.3.3.1
|
||||
@@ -140,6 +166,8 @@ services:
|
||||
-Drepo.port=8080
|
||||
-Ddw.server.applicationConnectors[0].type=http
|
||||
-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
|
||||
-Didentity-service.auth-server-url=${IDENTITY_SERVICE_PROTOCOL}://${IDENTITY_SERVICE_HOST}:${IDENTITY_SERVICE_PORT}/auth
|
||||
-Didentity-service.resource=acs-sync
|
||||
"
|
||||
depends_on:
|
||||
- postgres-acs
|
||||
@@ -151,7 +179,17 @@ services:
|
||||
environment:
|
||||
BASE_PATH: ./
|
||||
APP_CONFIG_ECM_HOST: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}"
|
||||
APP_BASE_SHARE_URL: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/#/preview/s"
|
||||
APP_CONFIG_BPM_HOST: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}"
|
||||
APP_BASE_SHARE_URL: "${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/workspace/#/preview/s"
|
||||
APP_CONFIG_PROVIDER: "ALL"
|
||||
APP_CONFIG_PLUGIN_PROCESS_SERVICE: "true"
|
||||
#APP_CONFIG_PLUGIN_PROCESS_AUTOMATION: "true"
|
||||
APP_CONFIG_AUTH_TYPE: OAUTH
|
||||
APP_CONFIG_OAUTH2_HOST: "${IDENTITY_SERVICE_PROTOCOL}://${IDENTITY_SERVICE_HOST}:${IDENTITY_SERVICE_PORT}/auth/realms/alfresco"
|
||||
APP_CONFIG_OAUTH2_CLIENTID: alfresco
|
||||
APP_CONFIG_OAUTH2_IMPLICIT_FLOW: "true"
|
||||
APP_CONFIG_OAUTH2_REDIRECT_LOGIN: "/workspace/"
|
||||
APP_CONFIG_OAUTH2_REDIRECT_LOGOUT: "/workspace/logout"
|
||||
|
||||
activiti-app:
|
||||
image: alfresco/process-services:1.11.1.1
|
||||
@@ -166,11 +204,15 @@ services:
|
||||
ACTIVITI_ES_REST_CLIENT_ADDRESS: search-aps
|
||||
ACTIVITI_ES_REST_CLIENT_PORT: 9200
|
||||
ACTIVITI_ES_REST_CLIENT_SCHEMA: http
|
||||
IDENTITY_SERVICE_ENABLED: "true"
|
||||
IDENTITY_SERVICE_AUTH: ${IDENTITY_SERVICE_PROTOCOL}://${IDENTITY_SERVICE_HOST}:${IDENTITY_SERVICE_PORT}/auth
|
||||
IDENTITY_SERVICE_CONTENT_SSO_REDIRECT_URI: ${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/activiti-app/app/rest/integration/sso/confirm-auth-request
|
||||
JAVA_OPTS: "-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
|
||||
depends_on:
|
||||
- postgres-aps
|
||||
volumes:
|
||||
- "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
|
||||
- apsbin-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
activiti-admin:
|
||||
image: alfresco/process-services-admin:1.11.1.1
|
||||
@@ -196,6 +238,8 @@ services:
|
||||
POSTGRES_USER: alfresco
|
||||
POSTGRES_PASSWORD: alfresco
|
||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
||||
volumes:
|
||||
- apsdb-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
postgres-aps-admin:
|
||||
image: postgres:11.6
|
||||
@@ -205,6 +249,8 @@ services:
|
||||
POSTGRES_USER: alfresco
|
||||
POSTGRES_PASSWORD: alfresco
|
||||
command: postgres -c max_connections=50 -c log_min_messages=LOG
|
||||
volumes:
|
||||
- apsadmindb-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
search-aps:
|
||||
image: elasticsearch:7.6.0
|
||||
@@ -218,10 +264,36 @@ services:
|
||||
hard: -1
|
||||
depends_on:
|
||||
- activiti-app
|
||||
volumes:
|
||||
- esindex-volume:/var/lib/postgresql/data:rw
|
||||
|
||||
identity:
|
||||
image: alfresco/alfresco-identity-service:1.4.0
|
||||
mem_limit: 512m
|
||||
user: jboss
|
||||
environment:
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: admin
|
||||
KEYCLOAK_HOSTNAME: ${IDENTITY_SERVICE_HOST}
|
||||
KEYCLOAK_IMPORT: /tmp/keycloak-alfresco-realm.json
|
||||
KEYCLOAK_STATISTICS: enabled
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
- "${IDENTITY_SERVICE_HOST}"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/realms/alfresco"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
# Really long startup times on Windows
|
||||
retries: 18
|
||||
volumes:
|
||||
- ./keycloak-alfresco-realm.json:/tmp/keycloak-alfresco-realm.json:ro
|
||||
- keycloak-volume:/opt/jboss/keycloak/standalone/data:rw
|
||||
|
||||
proxy:
|
||||
build: ./nginx-ingress
|
||||
image: local/nginx-ingress:acs-sync-share-adw-aps
|
||||
image: local/nginx-ingress:acs-sync-share-adw-aps-aims
|
||||
mem_limit: 256m
|
||||
ports:
|
||||
- 8080:8080
|
||||
@@ -232,9 +304,28 @@ services:
|
||||
- digital-workspace
|
||||
- activiti-app
|
||||
- activiti-admin
|
||||
- identity
|
||||
|
||||
volumes:
|
||||
shared-file-store-volume:
|
||||
driver_opts:
|
||||
type: tmpfs
|
||||
device: tmpfs
|
||||
acsbin-volume:
|
||||
driver: local
|
||||
acsdb-volume:
|
||||
driver: local
|
||||
activemq-volume:
|
||||
driver: local
|
||||
solrindex-volume:
|
||||
driver: local
|
||||
apsbin-volume:
|
||||
driver: local
|
||||
apsdb-volume:
|
||||
driver: local
|
||||
apsadmindb-volume:
|
||||
driver: local
|
||||
esindex-volume:
|
||||
driver: local
|
||||
keycloak-volume:
|
||||
driver: local
|
||||
|
80
keycloak-alfresco-realm.json
Normal file
80
keycloak-alfresco-realm.json
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"realm": "alfresco",
|
||||
"enabled": true,
|
||||
"sslRequired": "external",
|
||||
"registrationAllowed": false,
|
||||
"roles": {
|
||||
"realm": [ {
|
||||
"name": "user",
|
||||
"description": "User privileges"
|
||||
}, {
|
||||
"name": "admin",
|
||||
"description": "Administrator privileges"
|
||||
} ]
|
||||
},
|
||||
"clients": [
|
||||
{
|
||||
"clientId": "alfresco",
|
||||
"name": "Alfresco Products",
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"redirectUris": [ "*" ],
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": true,
|
||||
"directAccessGrantsEnabled": false,
|
||||
"publicClient": true,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"login_theme": "alfresco"
|
||||
}
|
||||
},
|
||||
{
|
||||
"clientId": "acs-share",
|
||||
"name": "ACS Share",
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"redirectUris": [ "*" ],
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": false,
|
||||
"publicClient": true,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"login_theme": "alfresco"
|
||||
}
|
||||
},
|
||||
{
|
||||
"clientId": "acs-sync",
|
||||
"name": "Alfresco Sync Service Clients",
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"redirectUris": [
|
||||
"http://127.0.0.1*",
|
||||
"http://localhost*"
|
||||
],
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": false,
|
||||
"publicClient": true,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"login_theme": "alfresco"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requiredCredentials": [ "password" ],
|
||||
"users": [
|
||||
{
|
||||
"username": "admin",
|
||||
"email": "admin@app.activiti.com",
|
||||
"enabled": true,
|
||||
"credentials" : [
|
||||
{
|
||||
"type" : "password",
|
||||
"value" : "admin"
|
||||
}
|
||||
],
|
||||
"realmRoles": [ "user", "admin" ]
|
||||
}
|
||||
]
|
||||
}
|
@@ -24,6 +24,10 @@ if [[ $APS_ADMIN_URL ]]; then
|
||||
sed -i s%http:\/\/activiti-admin:8080%"$APS_ADMIN_URL"%g /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if [[ $AIMS_URL ]]; then
|
||||
sed -i s%http:\/\/identity:8080%"$AIMS_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
|
||||
|
@@ -19,7 +19,10 @@ http {
|
||||
|
||||
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
||||
proxy_redirect off;
|
||||
proxy_buffering off;
|
||||
# proxy_buffering off;
|
||||
proxy_buffer_size 64k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
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;
|
||||
@@ -69,9 +72,6 @@ http {
|
||||
|
||||
location /share/ {
|
||||
proxy_pass http://share:8080;
|
||||
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
|
||||
location /workspace/ {
|
||||
@@ -80,5 +80,12 @@ http {
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
|
||||
location /auth/ {
|
||||
proxy_pass http://identity:8080;
|
||||
|
||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||
absolute_redirect off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user