Blueprints · Reverse Proxy & SSL
Beginner
10 min · Nginx
security.txt
Stages a security.txt with a contact address you replace. It does not harden the server by itself.
Live config
Baked-in protections
- A contact address is published
- The file has an expiration you must update
- The web root is not modified
Step 1 · text
security.txt
/root/portgate-blueprints/security.txt
Copy to the web root as /.well-known/security.txt after you edit the contact.
Contact: mailto:[email protected] Expires: 2027-01-01T00:00:00.000Z Preferred-Languages: en
Step 2 · bash
Read-only check
/root/portgate-blueprints/security-txt-check.sh
Prints status. It does not change the service.
#!/bin/sh set -eu if [ -f "/var/www/html/.well-known/security.txt" ]; then echo "security.txt is already published." else echo "security.txt is staged and not published." fi