No description
This repository has been archived on 2026-07-27. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 78.8%
  • EJS 11.2%
  • CSS 10%
Find a file
2019-08-23 18:09:40 +02:00
bin Initial commit 2019-07-18 14:00:05 +02:00
config implement file upload 2019-08-23 15:01:38 +02:00
helpers store files globaly for all users 2019-08-23 18:09:40 +02:00
node_modules Initial commit 2019-07-18 14:00:05 +02:00
public implement file upload 2019-08-23 15:01:38 +02:00
views implement file upload 2019-08-23 15:01:38 +02:00
app.js implement file upload 2019-08-23 15:01:38 +02:00
LICENSE.txt Initial commit 2019-07-18 14:00:05 +02:00
package-lock.json Initial commit 2019-07-18 14:00:05 +02:00
package.json Initial commit 2019-07-18 14:00:05 +02:00
README.md added docu how to setup 2019-08-21 14:39:07 +02:00

Setup

aur sync -c onlyoffice-documentserver
pacman -Sy onlyoffice-documentserver postgresql rabbitmq redis caddy
systemctl daemon-reload
systemctl start postgresql rabbitmq redis
sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;"
sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
psql -hmysql.pi -Uonlyoffice -d onlyoffice -f /usr/share/webapps/onlyoffice/documentserver/server/schema/postgresql/createdb.sql
systemctl start onlyoffice-docservice onlyoffice-fileconverter onlyoffice-spellchecker

Create web server config file at /etc/caddy/caddy.conf.d/officepad.de.conf:

officepad.de:80 {

	root   /home/onny/projects/onlyofficepad
	log    /var/log/caddy/officepad.de_access.log
	errors /var/log/caddy/officepad.de_errors.log

    proxy /spellchecker http://localhost:8080 {
        transparent
        without /spellchecker
    }

    rewrite {
        r ^/(cache|downloadas|sdkjs|plugins.json|fonts|web-apps|upload|doc)
        to /proxy/{uri}
    }

    proxy /proxy/ http://localhost:8000 {
        websocket
        transparent
        without /proxy/
    }

    proxy / http://localhost:8082 {
        transparent
    }
}

Append to /etc/hosts:

[...]
127.0.0.1	officepad.de
systemctl restart caddy
git clone https://git.project-insanity.org/onny/onlyofficepad.git
cd onlyofficepad
env NODE_ENV=default node bin/www

Visit http://officepad.de in your browser :)

Change default port of onlyofficepad in config/default.json.