Skip to content

jonashellmann/everydocs-web

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

EveryDocs Web

EveryDocs Web is the web interface of EveryDocs. As the technology, ReactJS is used.

Installation

Docker (recommended)

Run the following command to be able to access the web interface on port 5656.

docker run -v /path/to/config.js:/usr/local/apache2/htdocs/config.js jonashellmann/everydocs-web

The file /path/to/config.js needs to have the following content. The URL needs to be replaced by the actual URL you use for your Everydocs Core installation.

var config = {
  url: 'https://everydocs.test.com/api/',
}

Manual

  1. Install EveryDocs Core
  2. Download the newest release and unzip it into a location your webserver can access
  3. Open config.js and change the URL where EveryDocs Core can be accessed. For me it helped to run the core part under the same domain. Otherwise the website problably won't work because cross-site scripts are blocked by the web browser.
  4. To achieve this, you can configure your Apache Virtual Host like I did in the following example:
# Forward HTTP to HTTPS
<VirtualHost *:80>
  ServerName everydocs.test.com # Your domain

  RewriteEngine on
  RewriteCond %{SERVER_NAME} =everydocs.test.com # Your domain
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerName everydocs.test.com # Your domain
  ServerAdmin webmaster@localhost

  DocumentRoot /var/www/html/everydocs-web/ # Location where EveryDocs Web is
installed
  
  # Forward all calls to /api/ to EveryDocs Core
  ProxyPass /api/ http://localhost:[PORT]/ # The port under which EveryDocs
Core is running
  ProxyPassReverse /api/ http://localhost:[PORT]/ # The port under which
EveryDocs Core is running

  SSLCertificateFile [SSL Certificate File]
  SSLCertificateKeyFile [SSL Certificate Key File]
  Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>