Development version. DO NOT USE!
GPL
// TODO
[App Frontend] (with JWT authentication / authorization)
|
| request for file (JWT token in header) file
---------------------------------------------->[File Sever]---------> [browser]
| ^
| |
ask for authorization (JWT token) | |
[Auth Server] <-------------------------------------- |
| |
| agreement or not |
-------------------------------------------------------|
git clone ...
cd go-http-fileserver-jwt
go build -o go-http-fileserver-jwt main.go
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout ./ssl/test.key -out ./ssl/test.crt