Skip to content

gubnota/otp_sync_backend

Repository files navigation

Self-signed certificate

video

First you need to generate a self-signed certificate. Certificate authority is not required to place on the client side.

openssl genrsa -out private.key 2048
openssl req -new -key private.key -out cert.csr
openssl x509 -req -days 36500 -in cert.csr -signkey private.key -out cert.crt

.env

  1. create .env (see env.example)
  2. make sure BOT_TOKEN is the correct secret for your Telegram bot.

Run and test

docker compose up --build
curl -X GET https://localhost:9374/ \
     --cert cert.crt \
     --key private.key \
     --insecure

Running locally without docker

  • Using pip:
pip install -r requirements.txt
  • Using poetry:
poetry install
  • Using uv:
uv sync

About

Backend for OTP sync

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published