hi @Benny1 welcome to the community
we had a discussion before - use search to find it - it doesn’t work. There is no value in adding basic authentication in front of Nextcloud. I would recommend using modern integrated methods like MFA to secure your system. find more details in this topic: How to maintain, check and improve the security of your Nextcloud installation?