Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
16088 Lượt xem

Been having an issue and finally narrowed it down, but can't find a solution.


If I setup nginx to redirect to HTTPS, everything works great, SSL connection and all, except when writing messages in Odoo, our staff can't attach files. It gets stuck on "uploading" (blue bar over the file icon). There's no useful output in the log, even on the most verbose debug level. 


As a workaround, I've disabled SSL, but I'd like to turn it back on. Suggestions? Running v9.0c.

Ảnh đại diện
Huỷ bỏ
Tác giả

Hey Onnet, I checked and ours is currently set to 300M. Shouldn't be an issue.

Just a hint to everyone reading this thread: such observation can have different causes, so you have to check your browser's console message first. Depending on the cause, you can find a solution, such as some listed here. There maybe others.

Câu trả lời hay nhất

I find this same problem and using Chrome developer tool, I find that X-Frame-Options is set like DENY.

To fix it, I edit the file  /etc/nginx/snippets/ssl.conf 

In this file, comment this line:

add_header X-Frame-Options DENY;

and add this line:

add_header X-Frame-Options SAMEORIGIN;
and restart nginx
sudo service nginx restart
Reload the Odoo page (F5) and try attach again. Must be work.

Referencies:
https://serverfault.com/a/801680
Ảnh đại diện
Huỷ bỏ
Tác giả

You're a HERO! This worked. Thank you so much. Really appreciate it.

Yes, it works!!!

There is no `ssl.conf` file for me!

Câu trả lời hay nhất

We had similar issue in our setup running nginx as reverse proxy. The solution is simple. Just increase the upload file size limit for nginx by adding the line below to nginx.conf file

http {
    client_max_body_size 50M;

    //other lines...
}


Ảnh đại diện
Huỷ bỏ
Tác giả

Hey Onnet, I checked and ours is currently set to 300M. Shouldn't be an issue.

This worked perfectly for us. Thanks Onnet

It didn't work for me, i tried with 50M and it didn't work.

Câu trả lời hay nhất

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 24
1816
3
thg 10 18
10415
5
thg 8 15
6447
1
thg 9 20
5711
0
thg 9 23
2323