-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: add security.txt support (#3458)
* core: add security.txt support * Add 'mailto:' before email address
- Loading branch information
Showing
4 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% with m.site.security as security %} | ||
# Our security address | ||
{% for k, c in security.contact %} | ||
Contact: {% if k == 'email' %}mailto:{% endif %}{{ c }} | ||
{% empty %} | ||
# Please contact the site administrator as no contact details are configured for security issues specifically. | ||
{% endfor %} | ||
|
||
{% if security.policy as url %} | ||
# Our security policy | ||
Policy: {{ url }} | ||
{% endif %} | ||
|
||
{% if security.hiring as url %} | ||
# We are hiring! | ||
Hiring: {{ url }} | ||
{% endif %} | ||
|
||
# The official location of this file | ||
Canonical: {% url security_txt use_absolute_url %} | ||
|
||
Expires: {{ security.expires }} | ||
|
||
{% endwith %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters