<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to deploy ADF to work with both APS and ACS? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/22222#M9746</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/89326"&gt;@KarekMedAM&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;In dev mode I'm using the proxy config and it works:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;module.exports = {
&amp;nbsp; "/alfresco": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.80.204:8080",
&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
&amp;nbsp; "/activiti-app": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.94.146:8080",

&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
};&lt;/PRE&gt;This is work in dev but it doesn't work in prod when I deploy it on tomcat server.&lt;/DIV&gt;&lt;DIV&gt;How to make this work?&amp;nbsp;&lt;A href="https://www.health-insurancemarket.com" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;HealthCare gov&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;Steps to Configure Production Environment&lt;BR /&gt;Configure Reverse Proxy:&lt;BR /&gt;Use a reverse proxy like Nginx or Apache to handle the routing between your ADF application and the APS/ACS services.&lt;BR /&gt;Here’s an example configuration for Nginx:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;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;
    }
}&lt;/PRE&gt;&lt;P&gt;Update Environment Variables:&lt;BR /&gt;Ensure your ADF application is configured to use the correct URLs for APS and ACS in production.&lt;BR /&gt;Create an .env file with the following content&lt;/P&gt;&lt;PRE&gt;APP_CONFIG_ECM_HOST="http://your_domain.com/alfresco"
APP_CONFIG_BPM_HOST="http://your_domain.com/activiti-app"&lt;/PRE&gt;&lt;P&gt;Deploy ADF Application:&lt;BR /&gt;Build your ADF application for production:&lt;/P&gt;&lt;PRE&gt;npm run build&lt;/PRE&gt;&lt;P&gt;Deploy the built files to your Tomcat server.&lt;BR /&gt;Tomcat Configuration:&lt;BR /&gt;Ensure Tomcat is configured to serve your ADF application correctly.&lt;BR /&gt;Place the built files in the appropriate directory (e.g., webapps).&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;BR /&gt;Best regards,&lt;BR /&gt;florence023&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 10:02:47 GMT</pubDate>
    <dc:creator>florence023</dc:creator>
    <dc:date>2024-08-30T10:02:47Z</dc:date>
    <item>
      <title>How to deploy ADF to work with both APS and ACS?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/22220#M9744</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;In dev mode I'm using the proxy config and it works:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;module.exports = {
&amp;nbsp; "/alfresco": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.80.204:8080",
&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
&amp;nbsp; "/activiti-app": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.94.146:8080",

&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
};&lt;/PRE&gt;This is work in dev but it doesn't work in prod when I deploy it on tomcat server.&lt;/DIV&gt;&lt;DIV&gt;How to make this work?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jul 2024 11:46:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/22220#M9744</guid>
      <dc:creator>KarekMedAM</dc:creator>
      <dc:date>2024-07-22T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy ADF to work with both APS and ACS?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/22222#M9746</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/89326"&gt;@KarekMedAM&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;In dev mode I'm using the proxy config and it works:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;module.exports = {
&amp;nbsp; "/alfresco": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.80.204:8080",
&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
&amp;nbsp; "/activiti-app": {
&amp;nbsp; &amp;nbsp; target: "http://172.116.94.146:8080",

&amp;nbsp; &amp;nbsp; secure: false,
&amp;nbsp; &amp;nbsp; changeOrigin: true,
&amp;nbsp; },
};&lt;/PRE&gt;This is work in dev but it doesn't work in prod when I deploy it on tomcat server.&lt;/DIV&gt;&lt;DIV&gt;How to make this work?&amp;nbsp;&lt;A href="https://www.health-insurancemarket.com" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;HealthCare gov&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;Steps to Configure Production Environment&lt;BR /&gt;Configure Reverse Proxy:&lt;BR /&gt;Use a reverse proxy like Nginx or Apache to handle the routing between your ADF application and the APS/ACS services.&lt;BR /&gt;Here’s an example configuration for Nginx:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;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;
    }
}&lt;/PRE&gt;&lt;P&gt;Update Environment Variables:&lt;BR /&gt;Ensure your ADF application is configured to use the correct URLs for APS and ACS in production.&lt;BR /&gt;Create an .env file with the following content&lt;/P&gt;&lt;PRE&gt;APP_CONFIG_ECM_HOST="http://your_domain.com/alfresco"
APP_CONFIG_BPM_HOST="http://your_domain.com/activiti-app"&lt;/PRE&gt;&lt;P&gt;Deploy ADF Application:&lt;BR /&gt;Build your ADF application for production:&lt;/P&gt;&lt;PRE&gt;npm run build&lt;/PRE&gt;&lt;P&gt;Deploy the built files to your Tomcat server.&lt;BR /&gt;Tomcat Configuration:&lt;BR /&gt;Ensure Tomcat is configured to serve your ADF application correctly.&lt;BR /&gt;Place the built files in the appropriate directory (e.g., webapps).&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;BR /&gt;Best regards,&lt;BR /&gt;florence023&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 10:02:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/22222#M9746</guid>
      <dc:creator>florence023</dc:creator>
      <dc:date>2024-08-30T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to deploy ADF to work with both APS and ACS?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/485058#M39680</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Azure Synapse Analytics (APS)&lt;/STRONG&gt;: Ensure you have an &lt;STRONG&gt;Azure Synapse Analytics&lt;/STRONG&gt; workspace set up. This will be used for analytics and processing data.You can explore by this website further &lt;A href="https://winpkrapk.com/" target="_self"&gt;winpkr&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Azure Data Lake Storage (ACS)&lt;/STRONG&gt;: Set up &lt;STRONG&gt;Azure Data Lake Storage Gen2&lt;/STRONG&gt; as your data lake to store raw or transformed data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 17:11:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-deploy-adf-to-work-with-both-aps-and-acs/m-p/485058#M39680</guid>
      <dc:creator>winpkr</dc:creator>
      <dc:date>2024-12-03T17:11:02Z</dc:date>
    </item>
  </channel>
</rss>

