This question has been flagged
3 Replies
13331 Views

web.base.url Parameter should be updated by adminstrator login , i'am usually login with https://mydomain.com but web.base.url Parameter get it with http not https i'am Although enabling ssl on conf file and nginx 

Avatar
Discard

If you have web.base.url.freeze system parameter set to True.

You can set it manually to https and add a system parameter with the name web.base.url.freeze and the value True.

Best Answer

Hi,

Please make sure the following from your end. 

1. HTTPS is configured for your domain and its working fine. 

2.  web.base.url in System Parameters is updated with HTTPS

3.   web.base.url.freeze is set as TRUE  

4.  Make sure your configuration on the nginx.conf is correct, especially proxy_mode = True Refer to the odoo configuration at    https://www.odoo.com/documentation/13.0/setup/deploy.html#https


Thanks,


iWesabe

Avatar
Discard

Community Edition (CE) - not sure about enterprise as I do not have this.

This underlying issue still exists in the CE and seams to be a BUG. If one has a properly defined SSL and proxy and one logs into the system to create the 1st DB the act of using HTTPS in the URL, should enforce the initial value of web.base.url to match. It does not and ALWAYS forces HTTP which acting like a bug. YES you can set web.base.url.freeze = True and it will stick after the fact but....

if one installs the WEBSITE module this becomes problematic as installing the initial template and or editing the site after the fact all produces errors of MIXED CONTENT and parts of the site uses HTTP and NOT HTTPS. I have done literally 20-30 installs trying many combinations, including hard coding the proxy_mode = True in the odoo.conf hoping this would detect the HTTPS and stick. Something is caching or using HTTP and I can not resolve this issue. This is such a massive issue I am shocked its been like this for this long. Are folks not using the website module as one of the top 5 modules? The proxy is forcing ONLY SSL so there is not way to type in http and not land to https and with proxy_mode = True existing before the https://hhh.xxx.com/web/database/manager is even run - there is no reason HTTPS should not stick.

who can this be reported to as I have tried the regular forms with no luck, opened a ticket, told to use the forms, left messages in the GitHub area, messages on docker... its like Odoo does not care that this issue exists and there is no answers.

CloudFlare proxy is not working nginx proxy is not working and everyone says use a proxy and I know the proxy's are working because the site when visiting works its always HTTPS but you can not edit the site without forcing http in the url and disabling the forcing of https on the proxy - which is insane. Alternatively, I can edit setting the domain in the website as http://localhost:8069 and edit the site the LAN, but this is equally insane. There is a bug inside the app that needs to be looked at, tested and verified.

I do not know what else to do except give up. Perhaps Enterprise does NOT have this issue and that means that the community edition is broken.