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