sync
This commit is contained in:
@@ -53,7 +53,6 @@ In the meantime:
|
||||
be a command like `sudo cloudflared service install areallylonghash@sha-256?`
|
||||
|
||||
TODO:
|
||||
|
||||
Urgent:
|
||||
- [x] Basic Documentation
|
||||
|
||||
@@ -62,10 +61,10 @@ TODO:
|
||||
- [ ] Cloudflare Tunnel setup via cloudflared
|
||||
- [ ] Daemonize service
|
||||
|
||||
- [ ] Encryption
|
||||
- [x] Encryption
|
||||
- [x] SHA-1 hash API request/response
|
||||
- [x] Encrypt API request
|
||||
- [ ] Encrypt API response
|
||||
- [x] Encrypt API response
|
||||
|
||||
- [ ] Dockerize backend
|
||||
- [ ] Broke Dockerfile, need to expose additional ports.
|
||||
|
||||
@@ -105,7 +105,7 @@ func createToken(username string) (string, error) {
|
||||
|
||||
func verifyToken(tokenString string) error {
|
||||
token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) {
|
||||
return secretKey, nil
|
||||
return key, nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user