NC18 Community Document Server Reverse Proxy


I have upgraded my nextcloud docker instance to 18 and installed OnlyOffice and the Community Document Server.
When I click on a Docx Document it opens OnlyOffice but it throws this Error:

In the Web Developer tools i can see that it connects to my domain with http and not https
I configured this values:

Is there a way to force it to https ?

A ‘overwriteprotocol’ => ‘https’, in config.php fixed my issue.