-
Notifications
You must be signed in to change notification settings - Fork 68
Installation of the MediathekViewWeb Server code
Patrick edited this page Mar 11, 2017
·
2 revisions
Requirements:
- node
- npm
- redis >=3.2
- elasticsearch 5.x
-
Java
- sudo apt-get install openjdk-8-jre-headless
-
Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.2/deb.html#deb-repo
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- sudo apt-get install apt-transport-https
- echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
- sudo apt-get update && sudo apt-get install elasticsearch
-
Configuration of Elasticsearch:
- sudo nano /etc/elasticsearch/jvm.options
- set -Xms 200m and -Xmx 1500m
-
Node: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
- curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
- sudo apt-get install nodejs
-
Redis
- sudo apt-get install redis-server
-
MediathekViewWeb
- sudo apt-get install git
- git clone https://github.com/mediathekview/mediathekviewweb.git
- cd mediathekviewweb
- configuration is done in config.hjson (the default web server port 8000; a restart is needed after change.)
- npm install
- npm run build
- node app.js
-
If you want to access your node server (running on port 8000) through port 80:
- sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8000