Skip to content

Takes an Email-Address (or any other string) and serves it via traefic under /security.txt

License

Notifications You must be signed in to change notification settings

Utesgui/security.txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

security.txt

Takes an Email-Address (or any other string) and serves it under /security.txt (RFC 9116) as plain text.
https://securitytxt.org/

Usage

Portainer - Repository

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 url to repo, add variable

Docker-Compose

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.

Variables

  • SECURITY_STRING: The string that should be served
  • SERVINGPATH: The path the file is served under. Default is /security.txt

Example string

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

About

Takes an Email-Address (or any other string) and serves it via traefic under /security.txt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages