Takes an Email-Address (or any other string) and serves it under /security.txt (RFC 9116) as plain text.
https://securitytxt.org/
Use this repo via git in Portainer directly.
Just add the following URL to your stack:
https://github.com/Utesgui/security.txt
As well as a environment variable:
SECURITY_STRING=something
If necessary, you can also change the path the file is served
SERVINGPATH=/betterpath.json
-> default is /security.txt
Use the docker-compose.yml file and change it to your liking.
Then use docker-compose up -d
to start the container or Portainer to deploy the stack.
SECURITY_STRING
: The string that should be servedSERVINGPATH
: The path the file is served under. Default is /security.txt
Please make sure to also include the "
at the beginning and the end of the string, else the newlines will not work:
"Contact: mailto:[email protected] \r\nExpires: 2039-12-11T23:12:00.000Z \r\nPreferred-Languages: en, de"
will lead to:
Contact: mailto:[email protected]
Expires: 2039-12-11T23:12:00.000Z
Preferred-Languages: en, de