From 49c75bbb055f3747eb054dcb89693f2530189540 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 25 Jan 2021 12:09:28 +0100 Subject: [PATCH] Add Onion-Location header for kosmos.social Tells Tor Browser where to find the native onion site. refs #201 --- .../kosmos-mastodon/templates/default/nginx_conf_mastodon.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb b/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb index e1c6ebb..7c7c26d 100644 --- a/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb +++ b/site-cookbooks/kosmos-mastodon/templates/default/nginx_conf_mastodon.erb @@ -22,6 +22,7 @@ server { ssl_certificate_key <%= @ssl_key %>; add_header Strict-Transport-Security "max-age=31536000"; + add_header Onion-Location https://mastodon.<%= @onion_address %>$request_uri; } <% end %> -- 2.25.1