pssecret-server/README.md

55 lines
1.5 KiB
Markdown
Raw Normal View History

# Pssecret
2022-06-09 22:08:36 +00:00
2022-06-12 12:45:42 +00:00
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
Pssecret is self-hosted service to share secrets (like passwords) with somebody
2022-06-09 22:08:36 +00:00
over the network, but don't want them to appear in chats, unencrypted e-mails, etc.
This service tries to be as anonymous as possible. The only personal information that will be stored
on a server will be IP address of the client that made request to the server.
Service is built with Python, FastAPI and is using Redis for data storage.
2022-06-12 12:44:27 +00:00
2022-06-12 21:56:09 +00:00
## Installation
### Requirements
2022-12-17 08:37:41 +00:00
- Python 3.11+
2022-06-12 21:56:09 +00:00
- Redis
- Python development libraries (optional, only needed for `hiredis` module installation)
### How to install
The recommended installation method is with the [pipx](https://pipx.pypa.io/stable/)
2022-06-12 21:56:09 +00:00
2024-12-25 17:35:01 +00:00
```console
$ pipx install pssecret
2022-06-12 21:56:09 +00:00
```
2024-12-25 17:35:01 +00:00
For faster performance, install application with [hiredis](https://github.com/redis/hiredis) support.
2022-06-12 21:56:09 +00:00
2024-12-25 17:35:01 +00:00
```console
$ pipx install pssecret[hiredis]
```
2022-06-12 21:56:09 +00:00
### Running Pssecret server
2024-12-25 17:35:01 +00:00
Make sure you have the Redis service running.
After installation is done, you can start pssecret with `pssecret` command.
The web server will be started with `uvicorn` ASGI web server.
2024-12-25 17:35:01 +00:00
```console
$ pssecret
```
2022-06-12 21:56:09 +00:00
2022-12-17 08:53:50 +00:00
### Configuration
Configuration is done via environment variables.
2022-12-17 08:53:50 +00:00
Environment variables:
- `REDIS_URL`: URL for Redis access. Check what values are supported [here](https://redis.readthedocs.io/en/stable/connections.html#redis.Redis.from_url).
2022-12-17 08:53:50 +00:00
You can also declare these variables in a `.env` file in the working directory.