How to deploy ADF to work with both APS and ACS?

cancel
Showing results for 
Search instead for 
Did you mean: 
KarekMedAM
Active Member II

How to deploy ADF to work with both APS and ACS?

Hey,

I'm using Alfresco process services enterprise and Alfresco content services community. I developped a new interface that I can access both APS and ACS via the same interface.

In dev mode I'm using the proxy config and it works:

module.exports = {
  "/alfresco": {
    target: "http://172.116.80.204:8080",
    secure: false,
    changeOrigin: true,
  },
  "/activiti-app": {
    target: "http://172.116.94.146:8080",

    secure: false,
    changeOrigin: true,
  },
};
This is work in dev but it doesn't work in prod when I deploy it on tomcat server.
How to make this work?
 
Thank you,
 
2 Replies
Renata98
Member II

Re: How to deploy ADF to work with both APS and ACS?

To integrate Azure Data Factory (ADF) with Azure Synapse Analytics (previously APS) and Azure Cosmos DB (ACS), verify that your ADF pipelines are setup with the proper connections and data flows. To achieve the best results, test connections and monitor performance.:smileysad:

florence023
Member II

Re: How to deploy ADF to work with both APS and ACS?


@KarekMedAM wrote:

Hey,

I'm using Alfresco process services enterprise and Alfresco content services community. I developped a new interface that I can access both APS and ACS via the same interface.

In dev mode I'm using the proxy config and it works:

module.exports = {
  "/alfresco": {
    target: "http://172.116.80.204:8080",
    secure: false,
    changeOrigin: true,
  },
  "/activiti-app": {
    target: "http://172.116.94.146:8080",

    secure: false,
    changeOrigin: true,
  },
};
This is work in dev but it doesn't work in prod when I deploy it on tomcat server.
How to make this work? HealthCare gov
 
Thank you,
 


Hi,

To make your setup work in production, you need to handle the routing differently since the proxy configuration used in development won’t apply in a production environment. Here are the steps to achieve this:

Steps to Configure Production Environment
Configure Reverse Proxy:
Use a reverse proxy like Nginx or Apache to handle the routing between your ADF application and the APS/ACS services.
Here’s an example configuration for Nginx:

 

server {
    listen 80;
    server_name your_domain.com;

    location /alfresco/ {
        proxy_pass http://172.116.80.204:8080/alfresco/;
        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-Forwarded-Proto $scheme;
    }

    location /activiti-app/ {
        proxy_pass http://172.116.94.146:8080/activiti-app/;
        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-Forwarded-Proto $scheme;
    }
}

Update Environment Variables:
Ensure your ADF application is configured to use the correct URLs for APS and ACS in production.
Create an .env file with the following content

 

 

APP_CONFIG_ECM_HOST="http://your_domain.com/alfresco"
APP_CONFIG_BPM_HOST="http://your_domain.com/activiti-app"

Deploy ADF Application:
Build your ADF application for production:

 

npm run build

Deploy the built files to your Tomcat server.
Tomcat Configuration:
Ensure Tomcat is configured to serve your ADF application correctly.
Place the built files in the appropriate directory (e.g., webapps).

Hope this will help you.
Best regards,
florence023