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_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.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python3_cyberfusion_security_txt_policy_server-1.0.6.tar.gz.
File metadata
- Download URL: python3_cyberfusion_security_txt_policy_server-1.0.6.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58116b81e6a954167b847df96b2704709b08f4f114db38a35fcea01c2a8c6735
|
|
| MD5 |
ea6ca03766a574f2419841eaade68a69
|
|
| BLAKE2b-256 |
14816ac5e3f2c2653909ba17eb27299ec4841994227afc9f71da1c4c9d4b7543
|
File details
Details for the file python3_cyberfusion_security_txt_policy_server-1.0.6-py3-none-any.whl.
File metadata
- Download URL: python3_cyberfusion_security_txt_policy_server-1.0.6-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8e7ff24d828be06dba3468b85c12782843a8aace45917857ddb337a9ee4efee
|
|
| MD5 |
4acb9f83e1ed92a8c8c9bb3f0f563c14
|
|
| BLAKE2b-256 |
cbd3e047ce646f08c4695796d43fcb150b5df0bed8981e5fe0d4113c8dc9750e
|