Talks

From CSLabsWiki
Jump to: navigation, search
Talks
IP Address(es): 128.153.145.200
Contact Person: Benjamin Lannon
Last Update: September 2016
VM Host (Physical): 7 Grand Dad
Host VM: DubsDot


Talks is a web app that people can sign up for a lightning talk or after meeting slot and have priority over those who did not.

Setup

The repository for Talks is now found at lannonbr/NodeTalks. clone it onto a machine and then run

npm install

to get all of the dependencies. (Make sure that NodeJS and NPM are up to date). Next, download the forever package with

sudo npm install -g forever

This package allows node applications be run as a daemon. Following this, you can run

forever start index.js

in the NodeTalks directory to start daemon. by default the http server will be running on port 3000, so to have it work on port 80 for talks.cslabs.clarkson.edu, you need to set up a reverse proxy. the configured file for the talks virtualhost is below

<VirtualHost *:80>
	ServerName talks.cslabs.clarkson.edu
	ServerAlias talks.cosi.clarkson.edu
	ServerAlias talks
	Options -Indexes
	
	ProxyPreserveHost on
	ProxyPass / http://localhost:3000/
	ProxyPassReverse / http://localhost:3000/
</VirtualHost>

you will need to enable the proxy and proxy_http apache modules to make this work, so run

sudo a2enmod proxy
sudo a2enmod proxy_http

Afterwards, enable the site and restart apache by running

sudo a2ensite talks
sudo service apache2 restart

And talks should be up and running as expected.