Skip to content

Releases: OpenShock/API

v1.4.5

23 Sep 19:09
5dd3e57
Compare
Choose a tag to compare

ShockLink API

ShockLink backend.

Configuration

The API can be configured using the following environment variables:

Variable Default value Example value
SHOCKLINK__DB Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=ShockLink
SHOCKLINK__FRONTENDBASEURL https://shocklink.net https://shocklink.net
SHOCKLINK__REDIS__HOST x redis
SHOCKLINK__REDIS__PORT 6379
SHOCKLINK__REDIS__USER
SHOCKLINK__REDIS__PASSWORD
SHOCKLINK__CLOUDFLARE__ACCOUNTID
SHOCKLINK__CLOUDFLARE___IMAGES__KEY
SHOCKLINK__CLOUDFLARE___IMAGES__URL
SHOCKLINK__MAILJET__KEY
SHOCKLINK__MAILJET__SECRET

Deployment

The ShockLink stack consists of the following components:

  • Postgres as database
  • Redis
  • The API (this repository)
  • The WebUI

Using Docker

Assuming you have all other required containers running (if not, see above), you can run the following command to start
the API:

docker run \
    ghcr.io/shock-link/api:latest \
    --name shocklink-api \
    -e SHOCKLINK__DB=Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=ShockLink \
    -e SHOCKLINK__REDIS__HOST=localhost \
    -e SHOCKLINK__FRONTENDBASEURL=https://myshocklink.app \
    -p 80:80/tcp

Using docker-compose

See docker-compose.yml.

Current struggles

  • Dependency to Cloudflare Images (Paid)
  • Dependency with Mailjet templates

v1.4.4

23 Sep 18:46
Compare
Choose a tag to compare

ShockLink API

Configuration

The API can be configured using the following environment variables:

Variable Example value
DB Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=ShockLink
REDIS_HOST redis
REDIS_PASSWORD
CF_ACC_ID
CF_IMG_KEY
CF_IMG_URL
MAILJET_KEY
MAILJET_SECRET

Deployment

The ShockLink stack consists of the following components:

  • Postgres as database
  • Redis
  • The API (this repository)
  • The WebUI

Using Docker

Assuming you have all other required containers running (if not, see above), you can run the following command to start the API:

docker run \
    ghcr.io/shock-link/api:latest \
    --name shocklink-api \
    -e FRONTEND_BASE_URL=localhost \
    -e DB=localhost \
    -e REDIS_HOST=localhost \
    -p 80:80/tcp

Using docker-compose

See docker-compose.yml.

refs/tags/v0.0.3

23 Sep 19:09
Compare
Choose a tag to compare

ShockLink API

Configuration

The API can be configured using the following environment variables:

Variable Example value
DB Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=ShockLink
REDIS_HOST redis
REDIS_PASSWORD
CF_ACC_ID
CF_IMG_KEY
CF_IMG_URL
MAILJET_KEY
MAILJET_SECRET

Deployment

The ShockLink stack consists of the following components:

  • Postgres as database
  • Redis
  • The API (this repository)
  • The WebUI

Using Docker

Assuming you have all other required containers running (if not, see above), you can run the following command to start the API:

docker run \
    ghcr.io/shock-link/shocklink-api:latest \
    --name shocklink-api \
    -e FRONTEND_BASE_URL=localhost \
    -e DB=localhost \
    -e REDIS_HOST=localhost \
    -p 80:80/tcp

Using docker-compose

See docker-compose.yml.