diff --git a/apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf b/apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf index 3bebc609..b387a8ad 100644 --- a/apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf +++ b/apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf @@ -45,4 +45,8 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } + + location = / { + rewrite ^(.*)$ https://youtu.be/8C7s7BiRxdA redirect; + } } diff --git a/apps/server/src/router.ts b/apps/server/src/router.ts index ec5a3b14..6af1b2ed 100644 --- a/apps/server/src/router.ts +++ b/apps/server/src/router.ts @@ -66,9 +66,7 @@ export const router = (): Router => { const route = new Router(); route.get('/', ctx => { - ctx.body = { - message: 'https://www.youtube.com/watch?v=8C7s7BiRxdA' - }; + ctx.redirect('https://youtu.be/8C7s7BiRxdA'); }); route.get('/v1/about', getV1About);