post(onion-location): add netlify example

This commit is contained in:
MDLeom 2020-06-05 04:04:35 +01:00
parent e14eee2121
commit ac3fd4817d
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 9 additions and 0 deletions

View File

@ -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
```
## <meta> tag ## <meta> tag
If you don't have access to the web server to add the header (e.g. GitHub/GitLab Pages), you can add `<meta>` tag instead. If you don't have access to the web server to add the header (e.g. GitHub/GitLab Pages), you can add `<meta>` tag instead.