mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-11 12:49:19 +00:00
By default, it'll only send those headers when the response code is one of the following: - 200, 201, 204, 206, 301, 302, 303, 304, 307 & 308 As all the traffics should be https, the http protocol only exists to do 301 redirect, and always send the HSTS header is almost one of the best practices, we should set nginx to do so. Reference: - https://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header - https://ssl-config.mozilla.org/ |
||
---|---|---|
.. | ||
mastodon-sidekiq.service | ||
mastodon-streaming.service | ||
mastodon-web.service | ||
nginx.conf |