Manages redirect rules in haproxy configuration based on subdomain acl.
Watch out, this will remove any comment in the haproxy config.
Uses [`pyhaproxy`](https://github.com/imjoey/pyhaproxy) under the
hood.
## Usage
```
$ cat test.cfg
```
```
frontend http
bind *:80
frontend https
bind *:443 ssl crt /etc/ssl/my_cert/
default_backend default
backend default
server default 127.0.0.1:8888
```
Add a redirect rule:
```
$ haproxysubdomains add test.cfg https mydomain.com subdomain 5432
$ cat test.cfg
```
```
frontend http
bind *:80
frontend https
bind *:443 ssl crt /etc/ssl/my_cert/
default_backend default
acl subdomain hdr(host) -i subdomain.mydomain.com
use_backend subdomain if subdomain
backend default
server default 127.0.0.1:8888
backend subdomain
server subdomain 127.0.0.1:5432
```
Remove a redirect rule:
```
$ haproxysubdomains del test.cfg https subdomain
```
Metadata
Release files for haproxysubdomains 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haproxysubdomains-0.1.0.tar.gz | 2.4 kB | Without provenance | Details for haproxysubdomains-0.1.0.tar.gz |
Release files / haproxysubdomains-0.1.0.tar.gz
| Download URL | haproxysubdomains-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
764d829c48967953687a159c446af2d813fd832837ea0bb528c4c638143c6f92
|
|
BLAKE2b-256 checksum How to use checksums |
11601665a8f0b98cc43099af51f1da3339b5ecbad61116697829dc5864a2fb5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for haproxysubdomains 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.