Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fullpipe/bore-server


https://github.com/fullpipe/bore-server

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# bore-server

Promote ADMIN role to user

```
go run . promote [email protected] ADMIN
```

```
go generate ./...
```

```
go run . serve
```

## TODO

- token invalidation

### Генерация private/public ключа

Ключи должны быть в PEM формате.
Для генерации требуется openssl v3+

на macos можно поставить через `brew install openssl`
бинарник можно найти тут `/usr/local/opt/openssl/bin/openssl`

```bash
openssl version
# OpenSSL 3.0.5 5 Jul 2022 (Library: OpenSSL 3.0.5 5 Jul 2022)

# Создаем приватный ключ
openssl genpkey -algorithm Ed25519 -out private.pem

# Из private.pem генерим публичный ключ
openssl pkey -in private.pem -out public.pem -pubout
```