python3-cyberfusion-fast-redirect
fast-redirect redirects domains.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-fast-redirect
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
App
Find an example config in .env.example.
Add settings to the .env file. This file is relative to your working directory.
Only DATABASE_PATH is required to be set. We recommend setting it to /var/lib/fast-redirect.json.
These settings can be overridden by specifying them as environment variables.
JSON Database
Find an example JSON database in fast-redirect.json.
Properties:
destination_url. URL to redirect to. This must be a URL (i.e.www.domlimev.nlis invalid).status_code. Allowed values:301,302,303,307,308.keep_query_parameters. Whether query parameters are kept. If this is false, query parameters are discarded from thedestination_url. For example, if this is false,https://domlimev.nl/page?k=vis redirected tohttps://example.com.keep_path. Whether the path is kept. If this is false, the path is discarded from thedestination_url. For example, if this is false,https://domlimev.nl/this/is/a/pathis redirected tohttps://example.com.
Usage
Manually
bin/fast-redirect
systemd
systemctl start fast-redirect.service
SSL
Use a proxy that terminates SSL. E.g. HAProxy.
The domain or IP address that the proxy uses for health checks should not be configured as a redirect.
Release files for python3-cyberfusion-fast-redirect 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python3_cyberfusion_fast_redirect-1.1.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python3_cyberfusion_fast_redirect-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / python3_cyberfusion_fast_redirect-1.1.tar.gz
| Download URL | python3_cyberfusion_fast_redirect-1.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8d0231a35849b686af0cf821877c47b884d24cbdc5074477f1ad4c3c3b3efb6
|
|
BLAKE2b-256 checksum How to use checksums |
f695e7287c97915d53a9463f28c9bf65ddf96f4f2b2524cfbbdd05749be5cdf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / python3_cyberfusion_fast_redirect-1.1-py3-none-any.whl
| Download URL | python3_cyberfusion_fast_redirect-1.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6eba075b304bd18a3ab109c42bded9c44fadf348f03f538656178034ed02e77b
|
|
BLAKE2b-256 checksum How to use checksums |
194e9667e2fba67e65bfa6e0bbc0fe868245476cffd23252b81be40155ca842d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|