Skip to content

Commit

Permalink
Redirect to https://youtu.be/8C7s7BiRxdA when accessed to internal apis
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed Jun 4, 2024
1 parent 41cd74f commit bfc7bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/push-serverless/vm/etc/nginx/conf.d/knzklive.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
4 changes: 1 addition & 3 deletions apps/server/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bfc7bf6

Please sign in to comment.