Changes between Version 2 and Version 3 of ethercalc


Ignore:
Timestamp:
Dec 23, 2014, 10:36:05 AM (7 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ethercalc

    v2 v3  
    1313That created a directory structure in /home/calc/node_modules.
    1414
    15 The init script is handled by runit and is located in /etc/sv/ethercalc.
     15The init script is handled by runit and is located in /etc/sv/ethercalc. The run file is:
     16
     17{{{
     18#!/bin/bash
     19
     20exec 2>&1
     21exec chpst -e ./env -u calc:calc /usr/bin/nodejs /home/calc/node_modules/ethercalc/bin/ethercalc --keyfile /home/calc/keys/calc.mayfirst.org.key --certfile /home/calc/keys/calc.mayfirst.org.crt --basepath https://calc.mayfirst.org:8000
     22}}}
     23
     24And in the env directory, there is a file called NODE_ENV with the contents: production
     25
     26We running apache which passed through traffic to ethercalc. The apache file (in site-enabled) has the following content:
     27
     28{{{
     29<VirtualHost 209.234.253.233:443>
     30        # web config for calc.mayfirst.org
     31        ServerName calc.mayfirst.org
     32        # ServerAlias www.calc.mayfirst.org
     33
     34        <Proxy *>
     35          Order deny,allow
     36          Allow from all
     37        </Proxy>
     38
     39        #SSL Stuff
     40        SSLEngine On
     41        SSLProxyEngine On
     42        SSLCertificateFile /home/calc/keys/calc.mayfirst.org.apache.crt
     43        SSLCertificateKeyFile /home/calc/keys/calc.mayfirst.org.key
     44        SSLCertificateChainFile /home/calc/keys/calc.mayfirst.org.apache.intermediate.crt
     45
     46        ProxyPreserveHost On
     47        ProxyRequests off
     48        ProxyPass / https://calc.mayfirst.org:8000/
     49        ProxyPassReverse / https://calc.mayfirst.org:8000/
     50</VirtualHost>
     51}}}
    1652
    1753To update to the latest version of ethercalc, run the following command in /home/calc as the ethercalc user: