Sign inSign up

minidfx/kdrive-bridge

By minidfx

Updated almost 3 years ago

Image
0

210

minidfx/kdrive-bridge repository overview

Deprecated

Replaced by https://hub.docker.com/r/minidfx/ksuite-middleware

KdriveBridge

The goal of this project is to provide access to the content of your files saved in kDrive without the KSuite layer by calling the URL:

http://localhost:4000/files/<your-kdrive-file-id>

Configuration

Environment variablesDescription
KDRIVE_IDThe identifier of your KDrive.
KDRIVE_API_TOKENThe API token to use the KDrive API.
PHX_HOSTThe host the web server. (default: example.com)
PORTThe port for the web server. (default: 4000)
SECRET_KEY_BASESecret key used by the phoenix framework.
version: '3'
services:
  kdrive-bridge:
    image: minidfx/kdrive-bridge:v0.3.0
    environment:
      - SECRET_KEY_BASE=<secret>
      - PHX_HOST=<host>
      - PORT=<port>
      - KDRIVE_ID=<id>
      - KDRIVE_API_TOKEN=<token>
    ports:
      - 4000:4000

With Docker, running the application is a breeze. Simply update the environment variables SECRET_KEY_BASE, PHX_HOST, KDRIVE_ID, and KDRIVE_API_TOKEN. Then, run it to kickstart the application.

docker-compose up

Security considerations

This application doesn't offer any security layers or authentication. I suggest using a proxy for TLS termination and authentication in front of the container. Make sure to protect this resource by yourself.

Tag summary

Content type

Image

Digest

sha256:99401f7ab

Size

46.9 MB

Last updated

almost 3 years ago

docker pull minidfx/kdrive-bridge:v0.3.0