Skip to content

redmushie/OpenShock-API

 
 

Repository files navigation

OpenShock API

OpenShock backend.

Configuration

The API can be configured using the following environment variables:

Variable Default value Example value
OPENSHOCK__DB Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=openshock
OPENSHOCK__FRONTENDBASEURL https://shocklink.net https://shocklink.net
OPENSHOCK__REDIS__HOST x redis
OPENSHOCK__REDIS__PORT 6379
OPENSHOCK__REDIS__USER
OPENSHOCK__REDIS__PASSWORD
OPENSHOCK__CLOUDFLARE__ACCOUNTID
OPENSHOCK__CLOUDFLARE___IMAGES__KEY
OPENSHOCK__CLOUDFLARE___IMAGES__URL
OPENSHOCK__MAILJET__KEY
OPENSHOCK__MAILJET__SECRET

Deployment

The OpenShock 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 OPENSHOCK__DB=Host=docker-node;Port=1337;Database=root;Username=root;Password=root;Search Path=openshock \
    -e OPENSHOCK__REDIS__HOST=localhost \
    -e OPENSHOCK__FRONTENDBASEURL=https://myopenshock.app \
    -p 80:80/tcp

Using docker-compose

See docker-compose.yml.

Current struggles

  • Dependency with Mailjet templates

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C# 99.8%
  • Other 0.2%