Heb12 API Setup Script
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Daniel c752ef2b30 Polish some things 7 个月前
DOC.md Update 'DOC.md' 8 个月前
LICENSE Initial commit 10 个月前
Makefile Polish some things 7 个月前
README.md Finish readme 7 个月前

README.md

api

Heb12 API Setup Script

Setup

Will consume around 5 gigabytes. Most is for hosting Bible data,
the rest is for packages (which you probably have anyway).

Pull the repository, and run “make”. Should be fairly straightforward.

make

Removal

make remove

Apache2 Configuration

DocumentRoot /var/www/api
ServerName api.heb12.com

<Location /search>
	ProxyPass http://localhost:5000
</Location>

<Location /get>
	ProxyPass http://localhost:5500/get/
</Location>

Nginx configuration

server_name api.heb12.com;

autoindex on;

root /var/www/api;
index index.html index.php;

location /search {
	proxy_pass http://localhost:1235/;
}

location /get {
	proxy_pass http://localhost:1234/;
}