Snappymail Error on Reverse Proxy

i have config on htacces for reverse proxy snappymail,
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^(.
)$ http://cyberpanel/snappymail/$1 [P]
but if i try on url, show error:

An error occurred.
Please refresh the page and try again. Error: Failed loading
/snappymail/snappymail/v/2.15.3/static/js/min/libs.min.js

Please help!