Skip to content
OC Proxy
JavaScript Ruby Shell
Branch: master
Clone or download
Pull request Compare This branch is 131 commits ahead, 164 commits behind ging:master.
Latest commit 2a07549 Feb 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers Worked on TypeError: Cannot read property 'toString' of undefined Feb 8, 2018
extras New version in Dockerfile Aug 29, 2016
lib Central Chain: privacy, quota, asset + assetID Sep 26, 2016
policies Instructions to use JSON in custom policies Jan 19, 2016
scripts/etc
.gitignore Secure mode Apr 16, 2015
README.md Improved README Jul 11, 2017
accounts.organicity.eu.cert.pem Use Keycloak to validate tokens Aug 18, 2016
cert.pem Added JWT token validation + role handling Sep 21, 2016
config.template.js
log_config.json
mkdocs.yml Added GA Sep 5, 2016
oc-proxy.js
package.json Cleaned up package.json Nov 25, 2016

README.md

OC proxy

Install

cd /opt
git clone https://github.com/OrganicityEu-Platform/oc-proxy.git
cd oc-proxy
cp config.template.js config.js
# Configure the application (chain, client_id and client_secret, application_endpoint and nofification_proxy)
npm install

Link startup script and the log rotate (Like this, the script are kept up to date with git changes):

ln -s /opt/oc-proxy/scripts/etc/init.d/oc-proxy /etc/init.d/oc-proxy
ln -s /opt/oc-proxy/scripts/etc/logrotate.d/oc-proxy /etc/logrotate.d/oc-proxy

Run manually

/etc/init.d/oc-proxy start
/etc/init.d/oc-proxy stop
/etc/init.d/oc-proxy restart
/etc/init.d/oc-proxy status

Autostart

Ubuntu (14.04)

Add:

sudo update-rc.d oc-proxy defaults

Enable/Disable:

sudo update-rc.d oc-proxy enable
sudo update-rc.d oc-proxy disable

Remove:

sudo update-rc.d -f oc-proxy remove

Cent OS

Enable/Disbale

chkconfig oc-proxy on
chkconfig oc-proxy off

Verify:

chkconfig --list oc-proxy

Test logrotate

logrotate --force /etc/logrotate.d/oc-proxy
You can’t perform that action at this time.