Hello,
I see an issue to configure The âCollabora Online - Built-in CODE Serverâ under â/settings/user/richdocumentsâ behind a proxy.
The Build in Server works without the reverse SSL proxy, but it is not possible to set the right the settings for the â/settings/user/richdocumentsâ.
If I choose âUse built in âŚâ the Check is green and when I klick into âUse ownâŚâ it shows the right URL with https. I press the save button too. But after reload it points again to http.
It seems, that the â/settings/user/richdocumentsâ does not handle the âX-Forward-Forwarted-Sslâ or âX-Forward-Forwarted-Protoâ header or it ignores the ââoverwriteprotocolâ => âhttpsâ,â setting in â/config/config.phpâ
If I set âSetEnv HTTPS onâ in /.htaccess ist works like a charm.
That means, the â/custom_apps/richdocumentscode/proxy.phpâ is not affected . Only the configuration of the built in Collabora inside Nextcloud fails at the http isntead of https.
The hostname as set in âoverwritehostâ works.
nginx config:
server {
listen 443 ssl;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
location / {
proxy_pass http://192.168.2.30:8080/;
# collabora server websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host "example.com";
proxy_set_header X-Forwarded-Proto "https";
}
}
config.php
'overwritehost' => 'example.com',
'overwriteprotocol' => 'https',
'overwritecondaddr' => '^192\\.168\\.0\\.100$',