add Onion-Location header

This commit is contained in:
keyan 2022-07-12 13:18:12 -05:00
parent 42e31f49ee
commit b8f57e0c3c
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,8 @@ location / {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
add_header Onion-Location http://snsnsnya6h3ot563f3p566wuhfoklkg5f62hokdlaqzcaub3gf4xlxyd.onion$request_uri;
proxy_pass http://127.0.0.1:8080; proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1; proxy_http_version 1.1;

View File

@ -43,7 +43,6 @@ function MyApp ({ Component, pageProps: { session, ...props } }) {
/> />
<Head> <Head>
<meta name='viewport' content='initial-scale=1.0, width=device-width' /> <meta name='viewport' content='initial-scale=1.0, width=device-width' />
<meta http-equiv='onion-location' content='http://snsnsnya6h3ot563f3p566wuhfoklkg5f62hokdlaqzcaub3gf4xlxyd.onion' />
</Head> </Head>
<PlausibleProvider domain='stacker.news' trackOutboundLinks> <PlausibleProvider domain='stacker.news' trackOutboundLinks>
<Provider session={session}> <Provider session={session}>