onlyoffice / controlpanel Goto Github PK
View Code? Open in Web Editor NEWTools for administrating self-hosted ONLYOFFICE.
Home Page: http://www.onlyoffice.com
License: Apache License 2.0
Tools for administrating self-hosted ONLYOFFICE.
Home Page: http://www.onlyoffice.com
License: Apache License 2.0
While trying to solve problem with fulltext search in CS (ONLYOFFICE/Docker-CommunityServer#113),
on suggestion of @Carazyda I tried to install controlpanel. I have dificulty making it connect to existing installation of document & community server. (everything runs in docker)
I suspect the problem might be that control panel is trying to connect to community server through http while it is running on https (thus won't return json).
root@controlpanel:/var/www/onlyoffice/controlpanel# cat /var/log/onlyoffice/web.controlpanel.12-31.log
2020-12-31 06:38:09 - error: http://onlyoffice.fritz.box/api/2.0/settings/controlpanel.json Unexpected token in JSON at position 0
2020-12-31 06:38:09 - error: http://onlyoffice.fritz.box/api/2.0/portal.json Unexpected token in JSON at position 0
(the correct address is https://.....) - when I try through web browser it returns html "access denied" on http:// and correct json data on https://.
Is there a way how to explain to control panel that community server is running on https? The run script obviously expects http :-(
root@controlpanel:/var/www/onlyoffice/controlpanel# cat run-controlpanel.sh
...
sed 's/http://onlyoffice-community-server/http://'${ONLYOFFICE_COMMUNITYSERVER_HOST}'/' -i www/config/production.json;
...
other issue you might want to know about is that there is error in doc on page
https://helpcenter.onlyoffice.com/installation/groups-install-docker.aspx:
...
sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-control-panel
-v /var/run/docker.sock:/var/run/docker.sock
-v /app/onlyoffice/CommunityServer/data:/app/onlyoffice/CommunityServer/data
-v /app/onlyoffice/ControlPanel/data:/var/www/onlyoffice-controlpanel/Data
-v /app/onlyoffice/ControlPanel/logs:/var/log/onlyoffice-controlpanel
onlyoffice/controlpanel
...
^ the server expects mountpoints /var/www/onlyoffice/Data & /var/log/onlyoffice, not -controlpanel (I had to dig into the container to find the correct paths)
Having the Google Cloud integration enabled and doing backup on ControlPanel tries to put objects in the bucket with allUsers
object level permission.
Tried different setups, didn't work.
Google.Apis.Requests.RequestError The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced. [412] Errors [ Message[The member bindings allUsers and allAuthenticatedUsers are not allowed since public access prevention is enforced.] Location[If-Match - header] Reason[conditionNotMet] Domain[global] ]
Google.Apis.Requests.RequestError Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access [400] Errors [ Message[Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access] Location[ - ] Reason[invalid] Domain[global] ]
The only way it works is to disable the Public Access prevention on the bucket and have Fine Grained Access Control
enabled, but this results in objects being accessible over the Internet, which is not secure.
Suggesting to remove the allUsers
and allAuthenticatedUsers
object level permissions if there is one in the object ACL when OnlyOffice tries to upload the image to the bucket.
Generally works. Not done yet:
Settings:
https://<domain>/sso/metadata
OnlyOffice
https://<domain>/sso/acs
https://<domain>/sso/acs
https://<domain>/sso/acs
https://<domain>/sso/slo/callback
email
RSA_SHA256
(or RSA_SHA512)Keys:
Client Scopes:
https://<domain>/sso/metadata-dedicated
https://<keycloak-base>/realms/master/protocol/saml/descriptor
email
rsa-sha256
(same as configured in Keycloak)-----BEGIN CERTIFICATE-----
, -----END CERTIFICATE-----,
-----BEGIN RSA PRIVATE KEY-----and
-----END RSA PRIVATE KEY-----`, else OnlyOffice will not accept.urn:oid:2.5.4.42
urn:oid:2.5.4.4
urn:oid:1.2.840.113549.1.9.1
In onlyoffice-community-server you'll find the only interesting logging:
tail -n 50 -f /var/log/onlyoffice/web.sso..log
Feedback welcome on:
Docker
7.3.3.50
in previous versions I have updated without any problem
I downloaded the
update but when I click on install it fails to install it and nothing happens
No response
No response
When I go to https://<onlyoffice.mydomain.com>/controlpanel/rebranding/
, I found that the description text of dark theme logo is "light":
That's because they use the same variable LogoDarkAbout
.
By the way, you may have noticed that the text of LogoDarkAbout
is "light". The root cause is the incorrect text in the resource file:
Maybe a lot of Dark/Light related variables also have to be swapped, to resolve this issue completely...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.