Skip to Content
Menu
This question has been flagged
5355 Views

Hi all,

I am running odoo10 and have installed nginx to map the domain name with ip and port.  I don't want to show all the databases to the users. So i have followed the steps like as below link:

\https://www.odoo.com/forum/help-1/question/odoo-8-0-apache2-how-to-configure-a-proxy-from-an-url-to-a-specific-database-in-a-multi-database-setup-110545#answer-110604

but it is working in that system only. if i use the url in other system it shows all the databases.

My database nameabc10_t1

What i have done:

Install the 'dbfilter_from_header' add-on and add the line in odoo config file - server_wide_modules = web, web_kanban, dbfilter_from_header.

Enable the proxy_mode and change the db_filter = ^%d in odoo config file

Example nginx file is below:

server {
    listen 80;
    #rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only
    server_name abc.erp.mycompany.com;
    #include odoo_params;
    proxy_set_header X-Odoo-dbfilter ^abc10_t1;
    location /longpolling {
        proxy_pass http://abc.erp.mycompany.com:8172;
    }
    location / {
        proxy_pass http://abc.erp.mycompany.com:8169;
    }
    location ~* /web/static/ {
        proxy_cache_valid 200 90m;
        proxy_buffering    on;
        expires 864000;
        proxy_pass http://abc.erp.mycompany.com:8069;
    }
}




Avatar
Discard

Did you solve this problem? If so, can you share your solution? I have the same problem.

Related Posts Replies Views Activity
1
Dec 19
2132
1
Apr 20
9789
3
Apr 20
3376
0
Jan 18
5018
2
May 24
1637