From b8f57e0c3c45cc73911c76b8c4e7104651ef8908 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 12 Jul 2022 13:18:12 -0500 Subject: [PATCH] add Onion-Location header --- .platform/nginx/conf.d/elasticbeanstalk/00_application.conf | 2 ++ pages/_app.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.platform/nginx/conf.d/elasticbeanstalk/00_application.conf b/.platform/nginx/conf.d/elasticbeanstalk/00_application.conf index b66c026e..5f705886 100644 --- a/.platform/nginx/conf.d/elasticbeanstalk/00_application.conf +++ b/.platform/nginx/conf.d/elasticbeanstalk/00_application.conf @@ -11,6 +11,8 @@ location / { return 301 https://$host$request_uri; } + add_header Onion-Location http://snsnsnya6h3ot563f3p566wuhfoklkg5f62hokdlaqzcaub3gf4xlxyd.onion$request_uri; + proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; diff --git a/pages/_app.js b/pages/_app.js index eae0062d..28538ee0 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -43,7 +43,6 @@ function MyApp ({ Component, pageProps: { session, ...props } }) { /> -