Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4098 Vizualizări

My websites don't work in incognito/private browsers. When I connect to the domain I just get the database selector. If I try to access a site like domain.com/home I get the error: "The requested URL was not found on the server."


I'm using a reverse proxy that redirects to my odoo server and on the server I have nginx that directs to the correct db. The SSL is handled on the reverse proxy that then sends the request to my server on port 80. 


I don't know a lot about nginx so maybe I did something wrong. How can I fix this


odoo.conf

[options]

; This is the password that allows database operations:

admin_passwd = NOTHING

db_host = False

db_port = False

db_user = odoo

db_password = False

db_filter = ^%h$

db_list = False


addons_path = /opt/odoo/odoo12/addons,/opt/odoo/customaddons


xmlrpc_port = 8069

longpolling_port = 8072

proxy_mode = True


; Logging

; log_levels: error, debug, error, info, warn

logfile = /var/log/odoo/odoo.log

log_level = warn

logrotate = True


Nginx vhost

server {

        listen 80;

        server_name domain.com;


        access_log  /var/log/nginx/domain.com.access.log;

        error_log   /var/log/nginx/domain.com.log;


        proxy_buffers 16 64k;

        proxy_buffer_size 128k;


        client_max_body_size 24000M;

        proxy_read_timeout 720s;

        proxy_connect_timeout 720s;

        proxy_send_timeout 720s;


        # Proxy Headers

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_redirect off;


        location / {

                proxy_pass  http://odoo;

                proxy_read_timeout 300000;

        }


        location /longpolling {

                proxy_read_timeout 300000;

                proxy_connect_timeout 75s;

                proxy_pass http://odoo-lp;

        }

}


nginx.conf

user www-data;

worker_processes auto;

pid /run/nginx.pid;

include /etc/nginx/modules-enabled/*.conf;


events {

        worker_connections 768;

        # multi_accept on;

}


http {

        # Custom Settings

        proxy_connect_timeout 900;

        proxy_send_timeout 900;

        proxy_read_timeout 900;

        send_timeout 900;


        sendfile on;

        tcp_nopush on;

        tcp_nodelay on;

        keepalive_timeout 65;

        types_hash_max_size 2048;


        include /etc/nginx/mime.types;

        default_type application/octet-stream;


        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

        ssl_prefer_server_ciphers on;


        access_log /var/log/nginx/access.log;

        error_log /var/log/nginx/error.log;


        gzip on;

        gzip_disable "msie6";


        upstream odoo {

                server 127.0.0.1:8069 weight=1 fail_timeout=3000s;

        }

        upstream odoo-lp {

                server 127.0.0.1:8072;

        }


        include /etc/nginx/conf.d/*.conf;

        include /etc/nginx/sites-enabled/*;

}





Imagine profil
Abandonează
Autor

setting launch option --no-database-list in my odoo.servise, doesn't help. Just get same window with "The database manager has been disabled by the administrator"

Autor Cel mai bun răspuns

The config parameter was wrong db_filter is dbfilter in config 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 25
2035
2
iun. 25
674
0
feb. 25
1237
3
oct. 24
1743
0
iun. 24
1327