Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fullpipe/bore-server
https://github.com/fullpipe/bore-server
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/fullpipe/bore-server
- Owner: fullpipe
- License: mit
- Created: 2022-10-05T13:19:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T18:15:32.000Z (5 months ago)
- Last Synced: 2024-06-24T20:11:43.440Z (5 months ago)
- Language: Go
- Size: 1.99 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```