2025-11-21 15:25:42 +08:00
..
2025-08-15 13:41:55 +08:00
2025-11-06 11:04:18 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-11-21 15:25:42 +08:00
2025-11-18 15:46:15 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-11-13 17:36:47 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-11-18 14:20:47 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-09-09 16:31:51 +08:00
2025-09-29 10:46:58 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-09-05 15:54:59 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-09-16 14:29:18 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-09-09 14:59:16 +08:00
2025-09-15 17:08:59 +08:00
2025-11-06 11:04:18 +08:00
2025-07-16 14:27:17 +08:00
2025-10-20 17:06:04 +08:00
2025-09-09 16:31:51 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-09-08 09:50:52 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-11-05 16:36:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00
2025-07-16 14:27:17 +08:00

gadget

a light wight web server base on aiohttp

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/main.py