Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6234 มุมมอง

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;
    }
}




อวตาร
ละทิ้ง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
[CLOSED] Database filter problem แก้ไขแล้ว
1
ธ.ค. 19
2765
1
เม.ย. 20
10524
3
เม.ย. 20
4616
0
ม.ค. 18
5958
2
พ.ค. 24
3110