Hi,
First of all, I’m going to admit that i’m not professional server admin, this is more like my hobby and I’m still learning.
So, after recent (about week ago) docker automated update of my docservice container (i’m using watchtower), integration stopped working. Nextcloud connector shows this message:
(Client error: `GET https://xxx.xxxx.xxxx.xx/cache/files/data/conv_check_1441340148_docx/output.docx/check_1441340148.docx?md5=hKZsGY_JOCoTwmL-GckOlA&expires=1664352867&filename=check_1441340148.docx` resulted in a `403 Forbidden` response:
403 Forbidden
403 Forbidden
nginx
When i use DS example, it shows message:
The document security token is not correctly formed. Please contact your Document Server administrator.
My apache2 vhost:
<VirtualHost *:443>
ServerName xxxxxxx
DocumentRoot "/srv/www/htdocs/onlyoffice"
ProxyPass /.well-known/ !
ProxyPreserveHost On
ProxyPass "/" "http://localhost:88/"
ProxyPassReverse "/" "http://localhost:88/"
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =xxxxx
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<IfModule mod_headers.c>
RewriteEngine On
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader set X-Forwarded-Proto "https"
ProxyAddHeaders Off
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
ProxyPassMatch (.*)(\/websocket)$ "ws://localhost:88/$1$2"
ProxyPass / "http://localhost:88/"
ProxyPassReverse / "http://localhost:88/"
</IfModule>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/xxxxl/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx/privkey.pem
</VirtualHost>
</IfModule>
Nextcloud config.php
'onlyoffice' =>
array (
'verify_peer_off' => true,
'jwt_secret' => 'secret',
'jwt_header' => 'AuthorizationJWT'
),
Onlyoffice local.json
{
"services": {
"CoAuthoring": {
"sql": {
"type": "postgres",
"dbHost": "localhost",
"dbPort": "5432",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "AuthorizationJWT"
},
"outbox": {
"header": "AuthorizationJWT"
}
},
"secret": {
"inbox": {
"string": "secret"
},
"outbox": {
"string": "secret"
},
"session": {
"string": "secret"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
}
}
With configuration above, everything worked fine until last docker image update. I tried looking for solution in other topics, yet i found none.
Connector: 7.5.4, DS: 7.2
Any idea what should i do?