Seeking assistance with the following issue: When I install Odoo 17, accessing Odoo through IP:port works perfectly without any errors. However, when I use Nginx to access Odoo via IP, I encounter a problem. Clicking on the menu bar and selecting 'Website' causes the system to hang, and it continuously spins at the following web address: https://domain/web#menu_id=124&action=197&cids=1. Please help. Clicking on other fields still works normally, only the 'Website' is affected."
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
Hi,
Please refer to our blog to set odoo with nginx as reverse proxy
https://www.cybrosys.com/blog/how-to-configure-odoo-with-nginx-as-reverse-proxy
Hope it helps
Please provide detailed information about issue.
Here is a link to the image of my problem: https://upanh.tv/image/y7Kpsg
Could you please help me with this issue?
When I click on the website, it keeps spinning and does not redirect to the home page.
If I still use IP:8069, I can still click and use it normally.
However, if I use the domain with Nginx, the above error occurs.
This is my config file located at the path sudo nano /etc/nginx/sites-available/odoo17_https.conf
server {
listen 80;
server_name 192.168.7.101;
# Chuyển hướng tất cả các truy cập HTTP sang HTTPS
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name 192.168.7.101;
ssl_certificate /etc/nginx/ssl/ssl_certificate.crt;
ssl_certificate_key /etc/nginx/ssl/ssl_certificate_key.key;
# Cấu hình SSL
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
access_log /var/log/nginx/odoo_https_access.log;
error_log /var/log/nginx/odoo_https_error.log;
# Cấu hình proxy
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
location / {
proxy_redirect off;
proxy_pass http://192.168.7.101:8017;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://192.168.7.101:8017;
}
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}
Have you purchased IP address or using local network IP??
This problem has been resolved Thank ALL
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
4
5월 25
|
2682 | ||
|
2
5월 25
|
6113 | ||
|
1
3월 25
|
1798 | ||
|
4
3월 25
|
4666 | ||
|
3
2월 25
|
5748 |
Could you please help me with this issue?
When I click on the website, it keeps spinning and does not redirect to the home page.
If I still use IP:8069, I can still click and use it normally.
However, if I use the domain with Nginx, the above error occurs.
This is my config file located at the path sudo nano /etc/nginx/sites-available/odoo17_https.conf
server {
listen 80;
server_name 192.168.7.101;
# Chuyển hướng tất cả các truy cập HTTP sang HTTPS
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name 192.168.7.101;
ssl_certificate /etc/nginx/ssl/ssl_certificate.crt;
ssl_certificate_key /etc/nginx/ssl/ssl_certificate_key.key;
# Cấu hình SSL
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
access_log /var/log/nginx/odoo_https_access.log;
error_log /var/log/nginx/odoo_https_error.log;
# Cấu hình proxy
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
location / {
proxy_redirect off;
proxy_pass http://192.168.7.101:8017;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://192.168.7.101:8017;
}
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}
https://upanh.tv/image/y7Kpsg Here is a link to the image of my problem: