Unifi Controller Apache proxy

<VirtualHost $HOSTNAME:$PORT>
    ServerName $SERVER_NAME
    ProxyPass "/wss/" "wss://127.0.0.1:8443/wss/"
    ProxyPassReverse "/wss/" "wss://127.0.0.1:8443/wss/"
    ProxyPass "/" "https://127.0.0.1:8443/"
    ProxyPassReverse "/" "https://127.0.0.1:8443/"
    ProxyPreserveHost On
    SSLProxyEngine on
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLEngine on
    SSLCertificateFile $CERT_FILE
    SSLCertificateKeyFile $CERT_KEY
    ErrorLog ${APACHE_LOG_DIR}/$ERROR_LOG_NAME
    CustomLog ${APACHE_LOG_DIR}/$ACCESS_LOG_NAME combined
</VirtualHost>