Hello guys,
{ "$schema": "../../lib/core/app-config/schema.json", "ecmHost": "{protocol}//{hostname}{:port}", "bpmHost": "{protocol}//{hostname}{:port}", "identityHost": "{protocol}//{hostname}{:port}/auth/realms/alfresco", "loginRoute": "login", "providers": "ALL", "contextRootBpm": "activiti-app", "authType": "BASIC", "locale": "en", "notificationDefaultDuration": 2000, "auth": { "withCredentials": false }, "oauth2": { "host": "{protocol}//{hostname}{:port}/auth/realms/alfresco", "clientId": "alfresco", "scope": "openid", "secret": "", "implicitFlow": true, "silentLogin": true, "redirectSilentIframeUri": "{protocol}//{hostname}{:port}/assets/silent-refresh.html", "redirectUri": "/", "redirectUriLogout": "/logout", "publicUrls": ["**/preview/s/*", "**/settings"] },
server { listen 7777; server_name test.adf.cz; #set $allowOriginSite http://127.0.0.1:3000; set $allowOriginSite *; gzip on; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; underscores_in_headers on; proxy_pass_request_headers on; proxy_pass_header Set-Cookie; location /alfresco/ { proxy_pass http://localhost:8080/; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; } location /activiti/ { proxy_pass http://localhost:9999/; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; proxy_pass_request_headers on; } location / { proxy_pass http://localhost:9001/; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_pass_header Set-Cookie; proxy_pass_request_headers on; } }
You must change:
location /alfresco/ { proxy_pass http://localhost:8080/;
to:
location /alfresco/ { proxy_pass http://localhost:8080/alfresco/;
and other parts(eg
location /activiti/ { proxy_pass http://localhost:9999/;
and
location / { proxy_pass http://localhost:9001/;
the same way as above.
also you must install Alfresco Identity Service(eg. Keycloak) and configure ACS and APS to work with identity service otherwise you can not use both APS and ACS in your ADF app.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.