headercheckdashboardproxy/README.md
Daniel Dayley 4fc48f7722
Updated README
Cleaned unused argument hints
2024-11-07 13:04:20 -07:00

29 lines
993 B
Markdown

# headercheckdashboardproxy
## A quick and cheap python server to filter static content based on request headers.
## Usage
```
headercheckdashboardproxy
```
## Installation
1. `git clone https://git.cronocide.net/Cronocide/headercheckdashboardproxy.git`
2. `pip3 install -e headercheckdashboardproxy`
3. `headercheckdashboardproxy`
## Configuration
```
INDEX_FILE The filename to serve up on / (relative to CWD)
GROUPS_HEADER The header to use to compare group information from
USER_HEADER The header to use to compare user information from
BIND_PORT The TCP port to listen on
```
## Justification
This is a quick, crappy, and terribly embarrasing little proxy that filters out a apps on a pre-rendered dashboard (not included) using HTTP request headers passed to it by an upstream authentication proxy.
Components in the HTML that don't match the users or groups headers included in the request are removed from the HTML. That's it. That's all this does. A bit stupid, isn't it?