Odoo can't upload

Hi Everyone,

I used Caddy 0.93 proxy for Odoo port 8069 can’t upload attache file.

odoo log:
werkzeug: 127.0.0.1 - - [28/Nov/2016 09:52:30] “POST /web/binary/upload_attachment HTTP/1.1” 200 - Error upload

My Caddyfile:

www. xxx {
redir www. xxx {uri}
proxy / http://127.0.0.1:8069 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
header_upstream Connection {>Connection}
header_upstream Upgrade {>Upgrade}
}
proxy /longpolling http://127.0.0.1:8072 {
header_upstream Host {host}
}
tls lam@xxx.xxxx.xx
gzip
header / {
# Enable HTTP Strict Transport Security (HSTS) to force clients to always
# connect via HTTPS (do not use if only testing)
Strict-Transport-Security “max-age=31536000;”
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection “1; mode=block”
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options “nosniff”
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options “DENY”
}

Please adviser where is wrong.

Thanks yous.

For your proxy try this instead:

proxy / odoo-ip:odoo-port {
transparent
}

Or if it needs web sockets do this:
proxy / odoo-ip:odoo-port {
transparent
websocket
}

Hi Brian,

Thanks for you for advised, but it didn’t work.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.