Streama

ストリーミング配信環境

Wiki

ダウンロード
wget https://github.com/dularion/streama/releases/download/v1.0.18/streama-1.0.18.war -O streama.war

wget https://raw.githubusercontent.com/dularion/streama/master/docs/sample_application.yml -O application.yml

必要なソフト

# apt install openjdk-8-jre

インストール
# mkdir /var/data/streama

# chown uchida:uchida /var/data/streama

streama.war と、application.yml を、/var/data/streama に置く

前提条件

Ubuntu 16.10

$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.10.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

Arch Linux

$ java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

起動
$ cd /var/data/streama

$ chmod +x streama.war

$ ./streama.war

ポート8080 で、Web が起動します。

$ ./streama.war &
$ INFO streama.Application - Starting Application on www2.ekzemplaro.org with PID 2571 (started by uchida in /var/data/streama)
DEBUG streama.Application - Running with Spring Boot v1.3.8.RELEASE, Spring v4.2.8.RELEASE
INFO streama.Application - The following profiles are active: production
ERROR grails.boot.config.tools.ClassPathScanner - The application defines a Groovy source using the default package. Please move all Groovy sources into a package.

Configuring Spring Security Core ...
... finished configuring Spring Security Core

INFO streama.Application - Started Application in 127.371 seconds (JVM running for 130.691)
Grails application running at http://localhost:8080 in environment: production
	
アクセス

http://localhost:8080/

http://hostname:8080/

systemctl で起動

/etc/systemd/system/streama.service

# systectl start streama
# systectl status streama
# systectl enable streama

Nginx のリバースプロキシーを使う

	location / {
		root   /var/data/streama;
		proxy_pass http://localhost:8080/;
		proxy_set_header   X-Forwarded-For $remote_addr;
		}

Return

Mar/21/2017 AM 08:15