Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.96 KB

README.md

File metadata and controls

56 lines (41 loc) · 1.96 KB

Hellscream

image image image hellscream integration test Codacy Badge

file server

image

this project used gin

step 1

clone this repository && cd this project

step 2

docker network -d bridge $(your network)

step 3

docker build . -t hellscream

step 4

docker run --name hellscream -v $(your file path):/Azeroth/Hellscream/file -v $(your config path):/Azeroth/Hellscream/config --network $(your network) --network-alias hellscream -it -d hellscream


configure

  • this file server divided into two parts, you can configure hellscream_conf.yaml

    • need auth
      • you add map struct into file.protect, the key is url, value is file path

      • for example:

         file:
           protect
             avatar:
               /Azeroth/Hellscream/file/avatar

        you can access 127.0.0.1:8088/hellscream/protect/avatar/xxx.txt with jwt

    • open access
      • you add map struct into file.public, the key is url, value is file path

      • for example:

            file:
              public
                img:
                  /Azeroth/Hellscream/file/img

        you can access 127.0.0.1:8088/hellscream/public/img/xxx.jpg without jwt

  • if you want change access network gateway, you can do some change on envoy.yaml