02-04-2019 05:51 AM
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)
02-05-2019 08:18 AM
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}","application": {"providers": "ECM",
"name": "Appplication"
},
"languages": [
{
"key": "en",
"label": "English"
},
{
"key": "fr",
"label": "French"
}
],
"logLevel" : "trace"
}
Regards,
David.
02-05-2019 12:34 AM
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
02-05-2019 07:49 AM
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.
02-05-2019 08:07 AM
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
02-05-2019 08:18 AM
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}","application": {"providers": "ECM",
"name": "Appplication"
},
"languages": [
{
"key": "en",
"label": "English"
},
{
"key": "fr",
"label": "French"
}
],
"logLevel" : "trace"
}
Regards,
David.
Explore our Alfresco products with the links below. Use labels to filter content by product module.