feat(security): add nginx http-to-https redirect config

This commit is contained in:
2025-12-30 20:55:01 +01:00
parent 972d167639
commit aeea84862b

View File

@@ -0,0 +1,13 @@
# Crumbforest HTTP -> HTTPS Redirect
# Purpose: Harden security by forcing all traffic to encrypted channels.
# Usage: Include this in /etc/nginx/sites-available/crumbforest (or replace the port 80 block)
server {
listen 80;
listen [::]:80;
server_name crumbforest.194-164-194-191.sslip.io 194.164.194.191;
# Force HTTPS
# This mitigates brute-force on plain HTTP and ensures encryption.
return 301 https://$host$request_uri;
}