Code Monkey home page Code Monkey logo

goflet's Introduction

Hi 👋, I'm vvbbnn00

Python JavaScript Golang Java C

English | 简体中文 | 日本語

👨🏻‍💻 About Me

  • 🎓 Currently pursuing a Bachelor's degree in Computer Science and Technology at University of Shanghai for Science and Technology (USST).
  • 🚀 Exploring the field of Distributed Systems for future direction.
  • 💻 Proficient in React and Vue, popular front-end frameworks. Enjoys using Node.js and Python for backend development.
  • 📚 Familiar with Python and JavaScript languages, and currently diving into Golang.
  • 🔍 Interested in network security, with a focus on Web, and some knowledge in Misc, simple Crypto, and Reverse Engineering.
  • 🌱 Continuously learning and improving my technical skills.
  • 🎥 A fan of the anime world, with favorites including Steins;Gate, Sagrada Reset, Spice and Wolf, and ef: A Tale of Melodies.
  • 🎮 Enjoys playing Galgames like Wonderful Everyday: Down the Rabbit Hole, The Devil on G-String, and Ever17.
  • 🔑 GPG Keys: 05E6BBEB76341CD0

💬 My Blog Articles

📫 Reach Me On

vvbbnn00@gmail.com   vvbbnn00@gmail.com   vvbbnn00

📊 Stats Cards

goflet's People

Contributors

dependabot[bot] avatar vvbbnn00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

goflet's Issues

Error: Invalid token

Hello, when I deploy the goflet in docker on my Windows local machine. Follwing error ouccurs:
screenshot-1716203879769

The curl command generated by swagger is :

curl -X 'POST' \
  'http://localhost:8080/file/%2Fimage%2Flogo.png' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnb2ZsZXQiLCJpYXQiOjE3MTAwMDgxNTksIm5iZiI6MTcxMDAwODE1OSwicGVybWlzc2lvbnMiOlt7InBhdGgiOiIvZmlsZS9pbWFnZXMvKiIsIm1ldGhvZHMiOlsiUE9TVCJdfV19.f7TezQ0-c3-O21thziw5m95iqIuQvdcDPgzg5N1QB6Q' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected];type=image/png'

And this is my goflect.json file:

{
  "debug": false,
  "swaggerEnabled": true,
  "logConfig": {
    "enabled": true,
    "level": "info"
  },
  "httpConfig": {
    "host": "0.0.0.0",
    "port": 8080,
    "cors": {
      "enabled": false,
      "origins": [
        "*"
      ],
      "methods": [
        "HEAD",
        "GET",
        "POST",
        "PUT",
        "DELETE",
        "OPTIONS"
      ],
      "headers": [
        "Content-Type",
        "Authorization"
      ]
    },
    "clientCache": {
      "enabled": true,
      "maxAge": 3600
    },
    "httpsConfig": {
      "enabled": false,
      "cert": "",
      "key": ""
    }
  },
  "fileConfig": {
    "baseFileStoragePath": "data",
    "allowFolderCreation": true,
    "uploadPath": "upload",
    "uploadLimit": 1073741824,
    "uploadTimeout": 7200,
    "maxPostSize": 20971520
  },
  "cacheConfig": {
    "cacheType": "MemoryCache",
    "MemoryCache": {
      "maxEntries": 1000,
      "defaultTTL": 60
    }
  },
  "imageConfig": {
    "defaultFormat": "jpeg",
    "allowedFormats": [
      "png",
      "jpeg",
      "gif"
    ],
    "strictMode": true,
    "allowedSizes": [
      16,
      32,
      64,
      128,
      256,
      512,
      1024
    ],
    "maxFileSize": 20971520,
    "maxWidth": 4096,
    "maxHeight": 4096
  },
  "jwtConfig": {
    "enabled": true,
    "algorithm": "HS256",
    "Security": {
      "signingKey": "goflet",
      "publicKey": "",
      "privateKey": ""
    },
    "trustedIssuers": null
  },
  "cronConfig": {
    "deleteEmptyFolder": 3600,
    "cleanOutdatedFile": 3600
  }
}

I really have no idea about this.

如何在docker里配置goflet.json

我从dockerhub直接下拉了镜像并运行,但是我并没有在docker容器里找到goflet.json配置文件,请问该如何设置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.