Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4263 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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...

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 24
23081
0
paź 23
978
3
lis 20
9600
1
lip 19
2182
2
kwi 18
27878