Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Xiao4/dpr_asseter

Repository files navigation

DPR Asster

DPR Asster is a resource server

Version

1.0.0 use node 4.*

Installation

git clone [git-repo-url] dpr_asseter
cd dpr_asseter
npm rebuild
cp config.json.dist config.json
vi config.json
Configure :

config.json

{
    // the port DPR Asseter focks on
	"listen"	:"14445",

	//ssl options
	"sslOptions":{
		// https On/Off
		"server" : "on",

		// https focks
		"listen" : "14446", 

		// ssl certs
		"keyPath": "/home/xiao4/work/dpr_asseter/conf/ssl/key.pem",
		"certPath": "/home/xiao4/work/dpr_asseter/conf/ssl/cert.pem",
		"caPath": "/home/xiao4/work/dpr_asseter/conf/ssl/ca.pem"
	},

	//dm303 Monitor setting, trun off if u don't has one.
	"monitorOptions":{
		"server": "on",
		"listen": "14500"
	},

	// where all the resource files are
	"filePath"	:"/home/xiao4/git/dpr_files",
	
	// DPR Asseter will put temp files in it
	"tmpPath"	:"/home/xiao4/tmp/combo",
	
	// combo url prefix
	"comboPathName"	:"/asset/combo",
	
	// component url prefix
	"componentPathName"	:"/asset/component",
	
	// how to get the version string in a url
	"strRegVersion":"\\?(\\w+),?",
	
	// use this server for develop or not
	"dev"	:false,
	
	// log accesses or not
	"log"		:true,

	// cache limit
	"cacheLimit":300,

	// maximum child worker count
	"processerLimit":4,
	
	// mime types
	"MIME" : {
		"jpg":	"image/jpeg",
		"gif":	"image/gif",
		"png":	"image/png",
		"ico":	"image/x-icon",
		"icon":	"image/x-icon",
		"icns":	"image/x-icns",
		"eot":	"application/vnd.ms-fontobject",
		"otf":	"application/font-sfnt",
		"ttf":	"application/font-sfnt",
		"woff":	"application/font-woff",
		"svg":	"image/svg+xml",
		"svgz":	"image/svg+xml",
		"css":	"text/css",
		"js":	"text/javascript",
		"html":	"text/html",
		"htm":	"text/html",
		"txt":	"text/plain",
		"map":	"application/json",
		"mobileconfig":	"application/mobileconfig"
	},

	// compress specific kinds of files or not
	"clinetZipExt" : {
		"css":	true,
		"js":	true,
		"html":	true,
		"htm":	true,
		"txt":	true,
		"eot":	true,
		"otf":	true,
		"ttf":	true,
		"svg":	true,
		"svgz":	true
	}
}
Run :
. dpr.sh start

Tech

DPR Asster uses a number of open source projects to work properly:

memeda!

About

A resource server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors