Changeset View
Changeset View
Standalone View
Standalone View
www/onlyoffice-documentserver/files/pkg-message.in
- This file was added.
[ | |||||
{ type: install | |||||
message: <<EOM | |||||
CONFIGURATION: | |||||
------------- | |||||
The configuration file can be found (or created) at the following path: | |||||
%%ETCDIR%%/documentserver/local.json. | |||||
The default values are available in the default.json configuration file, | |||||
which is available in the folders above. Please do not edit the contents of the | |||||
default.json file directly. The default values will be restored each time you | |||||
upgrade Document Server to a new version and all your changes will be lost. | |||||
1. Enable services at startup in the /etc/rc.conf file: | |||||
postgresql_enable="YES" | |||||
nginx_enable="YES" | |||||
rabbitmq_enable="YES" | |||||
supervisord_enable="YES" | |||||
Optionally in case of a jail with local IP and no internet access: | |||||
update /etc/hosts in order to resolve your nextcloud server to its local IP | |||||
2. Configure PostgreSQL server (don't forget to change the password): | |||||
# service postgresql initdb | |||||
# service postgresql start | |||||
# psql -U postgres -c "CREATE DATABASE onlyoffice;" | |||||
# psql -U postgres -c "CREATE USER onlyoffice WITH password 'onlyoffice';" | |||||
# psql -U postgres -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" | |||||
# psql -hlocalhost -Uonlyoffice -d onlyoffice -f %%WWWDIR%%/documentserver/server/schema/postgresql/createdb.sql | |||||
Optionally in case of a jail with local IP: | |||||
update /var/db/postgres/data13/pg_hba.conf accordingly | |||||
3. Create a new rabbitmq user for the ONLYOFFICE Document Server configuration (don't forget to change the password): | |||||
# service rabbitmq start | |||||
# rabbitmqctl add_user onlyoffice password | |||||
# rabbitmqctl set_user_tags onlyoffice administrator | |||||
# rabbitmqctl set_permissions -p / onlyoffice ".*" ".*" ".*" | |||||
and change it in %%ETCDIR%%/documentserver/local.json accordingly. | |||||
4. Setup supervisord in order to execute documentserver services: | |||||
- let supervisord.conf load files contained in this directory by adding to | |||||
%%PREFIX%%/etc/supervisord.conf: | |||||
[include] | |||||
files = %%ETCDIR%%/documentserver/supervisor/*.conf | |||||
- start supervisord: | |||||
# service supervisord start | |||||
5. Setup nginx: | |||||
- nginx sample configuration files are located in: %%ETCDIR%%/documentserver/nginx | |||||
Do not edit them as they will be restored everytime the port is updated. | |||||
- start nginx: | |||||
# service nginx start | |||||
6. Generate fonts and presentation themes: | |||||
# %%PREFIX%%/bin/documentserver-generate-allfonts.sh | |||||
7. Follow the following doc If you want to use Onlyoffice with Nextcloud: | |||||
- https://api.onlyoffice.com/editors/nextcloud | |||||
8. Enjoy. | |||||
EOM | |||||
} | |||||
] |