Skip to content

kaonone/polkahub-backend

Repository files navigation

alt text

Polkahub Backend

This is Polkahub Backend.

Status

POC. Active development.

Building

Install Rust:

curl https://sh.rustup.rs -sSf | sh

Build:

cargo build

Prepare .env file with default environment variables:

cp .env.example .env

Run

cargo run

Environment variables description

SERVER_IP - IP address for binding, e.g. 127.0.0.1

SERVER_PORT - port for binding, e.g. 8080

BASE_DOMAIN - base domain where nodes will deploy, e.g. "example.org"

BASE_REPO_DIR - home directory for git repositories, e.g. "repo"

BASE_REPO_DOMAIN - base domain where git repositories storied, e.g. "example.org"

JENKINS_API - Jenkins API URL, e.g. "localhost:8080"

JENKINS_API_USER - Jenkins API user, e.g. "user"

JENKINS_API_TOKEN - Jenkins API token, e.g. "token"

JOB_NAME - Jenkins job name for building projects, e.g. "job"

DEPLOYER_API - Deployer API URL, e.g. "localhost:8081"

DEPLOYER_API_USER - Deployer API user, e.g. "user"

DEPLOYER_API_PASSWORD - Deployer API password, e.g. "password"

POSTGRES_HOST - Postgres host, e.g. "127.0.0.1"

POSTGRES_PORT - Postgres port, e.g. 5432

POSTGRES_DATABASE - Postgres database name, e.g. "polkahub"

POSTGRES_USER - Postgres user, e.g. "polkahub"

POSTGRES_PASSWORD - Postgres password, e.g. "password"

POSTGRES_SALT - Postgres salt, e.g. "salt"

JWT_SECRET - JWT secret, e.g. "secret"

MAILGUN_SENDER_API - Mailgun Sender API url, e.g. "http://localhost:8082/api/v1/send_email"

MAILGUN_SENDER_API_USER - Mailgun Sender API user, e.g. "user"

MAILGUN_SENDER_API_PASSWORD - Mailgun Sender API password, e.g. "password"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published