Go to file
Theunis Botha f2e9697788 markdown 2018-11-18 09:49:09 +01:00
nginx/sites-available config 2018-11-18 08:01:39 +01:00
.gitignore update 2018-11-18 09:43:00 +01:00
README.md markdown 2018-11-18 09:49:09 +01:00
bash_aliases r3-config 2018-04-12 10:58:35 +02:00
build_latest stuff 2018-04-04 12:30:30 +02:00
ca-chain.cert.pem readme 2018-11-18 08:00:15 +01:00
checkout_all stuff 2018-04-04 12:30:30 +02:00
config.js nice config 2018-05-14 10:20:12 +02:00
cybafelo.local.cert.pem readme 2018-11-18 08:00:15 +01:00
cybafelo.local.key.pem readme 2018-11-18 08:00:15 +01:00
delete update to start scripts 2017-01-24 13:16:46 +01:00
hosts readme 2018-11-18 08:00:15 +01:00
logs pm2 control scripts 2017-01-24 10:20:08 +00:00
package-lock.json update 2018-11-18 09:39:55 +01:00
package.json update 2018-11-18 09:39:55 +01:00
restart pm2 control scripts 2017-01-24 10:20:08 +00:00
secure.js r3-config 2018-04-12 10:58:35 +02:00
start r3-config 2018-04-12 10:58:35 +02:00
start_r3_api r3-config 2018-04-12 10:58:35 +02:00
status_all stuff 2018-04-04 12:30:30 +02:00
stop pm2 control scripts 2017-01-24 10:20:08 +00:00
track_all stuff 2018-04-04 12:30:30 +02:00
update_all stuff 2018-04-04 12:30:30 +02:00

README.md

#R3 - Configuration Package

This package contains all R3 configuration variables which should be unique to each deployment of R3

#Authentication

 * config.js -> contains the client password
 * secure.js -> should only be included 'server' side and contains the server password.

For updates to the API to be successful (saving, deleting of components and uploads), these passwords have to match.

#Nginx Config

The nginx config for r3-api lives in this package under nginx subfolder. The default location for installation of all r3 packages is /usr/share/cybafelo.

When you install into this location (i.e. /usr/share/cybafelo/r3, /usr/share/cybafelo/r3-api ...) you will not have to modify the nginx configuration.

#SSL

For SSL web server deployments you are free to use the files:

 * cybafelo.local.cert.pem -> this is the certificate file in the nginx config
 * cybafelo.local.key.pem -> this is the private key used to generate the certificate

For your browser to accept this certificate and not display a red warning, you can import the following certificate chain file into the CA section of your browser options.

 * ca-chain.cert.pem

And no - R3 does NOT support the silly web browser from a giant corrupt software company that now owns github.com

#Hosts

The hosts file contains the host aliases for localhost - it allows the nginx config to determine the mode (live or development), application (r3-api, r3-editor, etc) and the domain associated with the SSL certificate (in our case cybafelo.local)