From ac3fd4817d833d410d7fac7a8a962660ebab9341 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 5 Jun 2020 04:04:35 +0100 Subject: [PATCH] post(onion-location): add netlify example --- source/_posts/onion-location-redirect.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_posts/onion-location-redirect.md b/source/_posts/onion-location-redirect.md index eceb985..bbca55a 100644 --- a/source/_posts/onion-location-redirect.md +++ b/source/_posts/onion-location-redirect.md @@ -38,6 +38,15 @@ example.com { } ``` +## Netlify + +Add custom header by using [`_headers`](https://docs.netlify.com/routing/headers/) file saved the root folder of your site: + +``` plain _headers +/* + Onion-Location: http://xxx.onion +``` + ## tag If you don't have access to the web server to add the header (e.g. GitHub/GitLab Pages), you can add `` tag instead.