Skip to content

Commit

Permalink
Merge pull request #115 from grische/fix/readme
Browse files Browse the repository at this point in the history
readme: update TOC
  • Loading branch information
grische authored Nov 26, 2023
2 parents df1a1f8 + cf65b32 commit f9bef23
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
[![Bazel tests](https://github.com/freifunkMUC/wgkex/actions/workflows/bazel.yml/badge.svg)](https://github.com/freifunkMUC/wgkex/actions/workflows/bazel.yml)

- [WireGuard Key Exchange](#wireguard-key-exchange)
* [Overview](#overview)
+ [Frontend broker](#frontend-broker)
- [POST /api/v1/wg/key/exchange](#post--api-v1-wg-key-exchange)
+ [Backend worker](#backend-worker)
* [Installation](#installation)
* [Configuration](#configuration)
* [Running the broker](#running-the-broker)
* [Client usage](#client-usage)
* [Contact](#contact)

- [Overview](#overview)
- [Frontend broker](#frontend-broker)
- [POST /api/v1/wg/key/exchange](#post-apiv1wgkeyexchange)
- [Backend worker](#backend-worker)
- [Installation](#installation)
- [Configuration](#configuration)
- [Running the broker and worker](#running-the-broker-and-worker)
- [Build using Bazel](#build-using-bazel)
- [Run using Python](#run-using-python)
- [Client usage](#client-usage)
- [Worker](#worker)
- [Contact](#contact)

# WireGuard Key Exchange

Expand Down Expand Up @@ -79,11 +81,11 @@ For further information, please see this [presentation on the architecture](http

## Installation

* TBA
- TBA

## Configuration

* Configuration file
- Configuration file

The `wgkex` configuration file defaults to `/etc/wgkex.yaml` ([Sample configuration file](wgkex.yaml.example)), however
can also be overwritten by setting the environment variable `WGKEX_CONFIG_FILE`.
Expand Down Expand Up @@ -130,6 +132,7 @@ python3 -c 'from wgkex.worker.app import main; main()'
## Client usage

The client can be used via CLI:

```
$ wget -q -O- --post-data='{"domain": "ffmuc_welt","public_key": "o52Ge+Rpj4CUSitVag9mS7pSXUesNM0ESnvj/wwehkg="}' --header='Content-Type:application/json' 'http://127.0.0.1:5000/api/v1/wg/key/exchange'
{
Expand All @@ -138,6 +141,7 @@ $ wget -q -O- --post-data='{"domain": "ffmuc_welt","public_key": "o52Ge+Rpj4CUS
```

Or via python:

```python
import requests
key_data = {"domain": "ffmuc_welt","public_key": "o52Ge+Rpj4CUSitVag9mS7pSXUesNM0ESnvj/wwehkg="}
Expand Down Expand Up @@ -169,7 +173,6 @@ sudo ip link set wg-welt up
sudo ip link set vx-welt up
```


## Contact

[Freifunk Munich Mattermost](https://chat.ffmuc.net)

0 comments on commit f9bef23

Please sign in to comment.