Sign inSign up

minidfx/ksuite-middleware

By minidfx

•Updated over 2 years ago

Image
0

146

minidfx/ksuite-middleware repository overview

⁠Ksuite-middleware

Project providing a single endpoint with a single API configuration to access to many resources from a KSuite environment.

⁠Kdrive

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

⁠Calendar

http://localhost:4000/calendars/<calendar_id>?from=<iso8601-datetime>&to=<iso8601-datetime>

⁠Configuration

Environment variablesDescription
KDRIVE_IDThe identifier of your KDrive.
KSUITE_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_BASEThe secret key used by the phoenix framework⁠.
CALDAV_USERNAMEThe username to connect to the CalDAV server.
CALDAV_PASSWORDThe password to connect to the CalDAV server.
CALDAV_SERVERThe server CalDAV, e.g. https://foo.bar.com⁠, https://foo.bar.com/file.php⁠, https://foo.bar.com/caldav⁠, ...
TIMEZONEThe timezone used to determine the right date time when the server calDAV returns a daily event in UTC.
version: '3'
services:
  ksuite-middleware:
    image: minidfx/ksuite-middleware:v0.5.0
    environment:
      - SECRET_KEY_BASE=<secret>
      - PHX_HOST=<host>
      - PORT=<port>
      - KDRIVE_ID=<id>
      - KSUITE_API_TOKEN=<token>
      - CALDAV_USERNAME=<username>
      - CALDAV_PASSWORD=<password>
      - CALDAV_SERVER=<server>
      - TIMEZONE=<tz>
    ports:
      - 4000:4000

With Docker, running the application is a breeze. Simply update the environment variables SECRET_KEY_BASE, PHX_HOST, KDRIVE_ID, and KSUITE_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:b5a4b3a99…

Size

48.4 MB

Last updated

over 2 years ago

docker pull minidfx/ksuite-middleware:v0.6.1