Only for DNS (grey mode). (Technically I think I have orange mode for www.intfiction.org, but it will be redirected to the apex intfiction.org before it hits my server.) I have the following in my app.yml, though I didn’t think either part would be relevant:
after_web_config:
- replace:
filename: /etc/nginx/nginx.conf
from: /sendfile.+on;/
to: |
server_names_hash_bucket_size 64;
sendfile on;
- file:
path: /etc/nginx/conf.d/discourse_redirect_1.conf
contents: |
server {
listen 80;
server_name www.intfiction.org;
return 301 $scheme://intfiction.org$request_uri;
}