Go to file
2024-05-10 14:14:57 +08:00
docs bugfix 2023-12-05 11:33:44 +08:00
gadget bugfix 2024-05-10 14:14:57 +08:00
macos bugfix 2023-12-05 11:33:44 +08:00
test bugfix 2023-12-05 11:33:44 +08:00
ubuntu bugfix 2023-12-05 11:33:44 +08:00
windows bugfix 2023-12-05 11:33:44 +08:00
README.md bugfix 2023-12-05 11:33:44 +08:00
requirements.txt bugfix 2024-01-26 15:51:05 +08:00

gadget

a light wight web server base on aiohttp

Documentation

  • 中文文档请看这里
  • English documents is under writing

Dependent

Download

git clone git@github.com:yumoqing/gadget.git

Configuration

please look ahserver to learn how to configure

support https

under "website" in the conf/config.json file, identify ssl with "crtfile" and "keyfile" like this.

	"website":{
		"ssl":{
			"crtfile":"$[workdir]$/conf/www.bsppo.com.pem",
			"keyfile":"$[workdir]$/conf/www.bsppo.com.key"
		}
	}

log configure

In the conf/config.json, need to config log, you need to identify "name", "levelname" and "logfile"

	"logger":{
		"name":"gadget",
		"levelname":"debug",
		"logfile":"$[workdir]$/logs/gadget.log"
	}

Test

the test folder contains everything need for a base test.

please to go test folder and run

python ../src/gadget.py