Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4267 Weergaven

Odoo 12

Nginx

 

We have a customer that has multiple divisions within their company.  They are wanting to have multiple urls pointing to one odoo database.  For example, support.domain1.com and helpdesk.domain2.com would both point to the one database.  Here is a snippet of the server block in nginx:

 

server

                Listen 80 default_server;

                Listen [::]:80 default_server;

 

                SSL configuration

                #

                listen 443 ssl http2;

                listen [::]:443 ssl http2;

        server_name marionkytest.ejail.net; Managed by Certbot

        proxy_set_header X-Odoo-dbfilter odoo;

 

 

it each url has its own block with the above filter to the same db, would that work?  Or is this even possible?

 

Thanks, thanks.

Dave

Avatar
Annuleer
Beste antwoord

I tested that a little bit and pass some steps, so if it can help ...
You can address an odoo instance with multiple urls, you only need to duplicate your server nginx block and at first glance, it works.
But I have not tested this a lot, and for instance, odoo stores the url of the database in the system parameter web.base.url and of course you can have only 1 value in it : it may happen some issues from that, or other things I have not seen yet.
that's my cent...

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
mei 24
23089
0
okt. 23
978
3
nov. 20
9603
1
jul. 19
2184
2
apr. 18
27885