python3-cyberfusion-security-txt-policy-server
security-txt-policy-server serves .well-known/security.txt files.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-security-txt-policy-server
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
The following environment variables may be specified:
; The app name is used in several places for this app to identify itself (string)
; Default: security-txt-policy-server
APP_NAME=
; The server will bind to this host (string)
; Default: ::1
LISTEN_HOST=
; The server will listen to this port (integer)
; Default: 8080
LISTEN_PORT=
; IP addresses of proxies that are trusted with proxy headers (comma separated list of strings)
; Default: ::1
TRUSTED_PROXY_ADDRESSES=
; The path to your JSON database (string)
; Default: none
DATABASE_PATH=
Only DATABASE_PATH is required to be set. We recommend setting it to /var/lib/security-txt-policy-server.json.
JSON Database
Find an example JSON database in security-txt-policy-server.json.
Properties:
domains. List of domains that this security.txt policy is served for.expires_timestamp. UNIX timestamp of security.txt 'Expires' field.email_contacts. (Do not add prefixmailto:which is required by security.txt - the server does this.)url_contactsencryption_key_urlsacknowledgment_urlspreferred_languagespolicy_urlsopening_urls
Find information about these properties on https://securitytxt.org/.
Usage
Manually
bin/security-txt-policy-server
systemd
systemctl start security-txt-policy-server.service
SSL
Use a proxy that terminates SSL. E.g. HAProxy.
Release files for python3-cyberfusion-security-txt-policy-server 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_security_txt_policy_server-1.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python3_cyberfusion_security_txt_policy_server-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:16.8 kB
Release files / python3_cyberfusion_security_txt_policy_server-1.1.tar.gz
| Download URL | python3_cyberfusion_security_txt_policy_server-1.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da88c0e7908665097e466186ca586d6e4e0700564f72085ecd89e609d21423be
|
|
BLAKE2b-256 checksum How to use checksums |
de07ecf178582a0323922566bbb4e3b4b631a091daff0b89f6ee5e78f535efa7
|
| 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_security_txt_policy_server-1.1-py3-none-any.whl
| Download URL | python3_cyberfusion_security_txt_policy_server-1.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c419de1b7b313f2c79589aa37b39f246ce902330246c9523efafbd68e33875ad
|
|
BLAKE2b-256 checksum How to use checksums |
b36a28d619fae9093c27ce880e373426e54a1178862ee6a36a2783d5bb9bcfe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|