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)
Solved! Go to Solution.
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.
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
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}","application": {"providers": "ECM",
"name": "Appplication"
},
"languages": [
{
"key": "en",
"label": "English"
},
{
"key": "fr",
"label": "French"
}
],
"logLevel" : "trace"
}
Regards,
David.
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.