cancel
Showing results for 
Search instead for 
Did you mean: 

ADF in https mode

anakin59490
Star Contributor
Star Contributor

Hi,

In production: I'm trying to use https protocol with adf .

I have updated proxy.conf.json file :

{
"/alfresco": {
"target": "https://localhost:8443",
"secure": true,
"changeOrigin": true
},
"/": {
"target": "https://localhost:8443",
"secure": true,
"changeOrigin": true
}
}

And this is the generated request when i try to log in :

http://10.xxx.xxx.xxx:8443/alfresco/api/-default-/public/authentication/versions/1/tickets


port is ok but protocol is still http...

my package.json file :

"scripts": {
"ng": "ng",
"start": "npm run validate-config && ng serve --open --public",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"validate-config": "ajv validate -s node_modules/@alfresco/adf-core/app.config.schema.json -d ./src/app.config.json --errors=text --verbose",
"e2e": "ng e2e"
},

And my command that generates dist folder : ng build --prod --base-href /dist/


How can I solve that ? thank you

(UPDATE : Alfresco Share is ok)
1 ACCEPTED ANSWER

Hi Jérôme,

The providers in my configuration is as shown in the example below

{
    "$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
    "ecmHost": "https://t-dms.vmm.be",
    "bpmHost": "http://{hostname}{:port}",
    "providers": "ECM",
    "application": {
        "name": "Appplication"
    },
    "languages": [
        {
            "key": "en",
            "label": "English"
        },
        {
            "key": "fr",
            "label": "French"
        }
    ],
    "logLevel" : "trace"
}

Regards,

David.

View answer in original post

4 REPLIES 4

kintu_barot
Star Collaborator
Star Collaborator

Hi

In order to use https, you have to apply the SSL to the Alfresco repository.

Please follow the steps Configuring SSL for a production environment | Alfresco Documentation 

Regards,

Kintu

ContCentric

Regards,
Kintu

d_moeyersons
Star Contributor
Star Contributor

Hi Jérôme,

After building your app, it doesn't use proxy.conf.json anymore; proxy.conf.json is used to configure the webpack proxy.
Instead it uses app.config.json, you can find it in the src directory and in the dist directory after building your app.

You will need to change the "ecmHost" for Alfresco Content Services or the "bpmHost" for Alfresco Proces Services & you need to change "providers" accordingly.

Regards,

David.

Hi David,

Here is my app.config.json in src directory (there is the same in dist directory):

{
"$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
"ecmHost": "http://{hostname}{:port}",
"bpmHost": "http://{hostname}{:port}",
"application": {
"name": "Appplication"
},
"languages": [
{
"key": "en",
"label": "English"
},
{
"key": "fr",
"label": "French"
}
],
"logLevel" : "trace"
}

OK for "ecmHost" , I use only Alfresco Content Services. I will change it

you need to change "providers" accordingly.

Do you mean "providers" in login component ?

<adf-login
...
providers="ECM"
...
</adf-login>

or is-it something else ?

Thank you

Hi Jérôme,

The providers in my configuration is as shown in the example below

{
    "$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
    "ecmHost": "https://t-dms.vmm.be",
    "bpmHost": "http://{hostname}{:port}",
    "providers": "ECM",
    "application": {
        "name": "Appplication"
    },
    "languages": [
        {
            "key": "en",
            "label": "English"
        },
        {
            "key": "fr",
            "label": "French"
        }
    ],
    "logLevel" : "trace"
}

Regards,

David.