Thanks Sam.
So do I basically need to do what’s in this post? Or is there a simpler way?
If following that post, I guess for me that file would read something like the following?
run:
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
from: /^add_header Strict-Transport-Security 'max-age=31536000';$/
to: |
add_header Strict-Transport-Security 'max-age=31536000';
# Cloudflare
set_real_ip_from my.server.ip;
real_ip_header CF-Connecting-IP;
(It’s a dedicated server running a single IP address.)