загружает файлы в IPFS через storj
Go to file
Untone 489ddfe2a9
All checks were successful
deploy / deploy (push) Successful in 1m28s
minor-fixes
2023-12-02 08:45:25 +03:00
.gitea/workflows ci 2023-12-02 05:19:22 +00:00
.gitignore auth 2023-12-02 08:44:06 +03:00
auth.py auth 2023-12-02 08:44:06 +03:00
Dockerfile auth 2023-12-02 08:44:06 +03:00
main.py minor-fixes 2023-12-02 08:45:25 +03:00
pyproject.toml auth 2023-12-02 08:44:06 +03:00
README.md minor-fixes 2023-12-02 08:45:25 +03:00

uploader: загружает файлы в IPFS

Использует:

  • python3
  • uvicorn ASGI -> WSGI
  • starlette ASGI server
  • boto3 s3 client
  • авторизацию через заголовок запроса

Переменные среды

  • STORJ_ACCESS_KEY
  • STORJ_SECRET_KEY
  • STORJ_END_POINT
  • STORJ_BUCKET_NAME
  • CDN_DOMAIN

Локальная разработка

mkdir .venv
python3.12 -m venv .venv
poetry env use .venv/bin/python3.12
poetry update
poetry run python main.py