security-txt-policy-server serves `.well-known/security.txt` files.
Project description
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_contacts
encryption_key_urls
acknowledgment_urls
preferred_languages
policy_urls
opening_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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python3_cyberfusion_security_txt_policy_server-1.0.5.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f206099cfd2a65a57367742ff9f4648512d81035a7741ab57b775d7412bbc528 |
|
MD5 | eaf94596392ce65c1ca7db35230ea613 |
|
BLAKE2b-256 | abd57a1b7c6edfd3bb1d6e0362839af3da49f1f31d2a0ddca44dc6cfa3760566 |
Close
Hashes for python3_cyberfusion_security_txt_policy_server-1.0.5.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2261f8e526646b7511e6273ebd4f05dc396abfe0c0ef733d5821caae6755411d |
|
MD5 | d9dfed39fafb4ba2a1d62f4fd893ab44 |
|
BLAKE2b-256 | 24384e877c0dc67713b66e4235a34b3d3f1df4426a1aa11587385fe616eef3a3 |