/buct-webvpn-converter

🔀 WEBVPN url converter for BUCT.

Primary LanguageTypeScript

Web VPN Converter

Connect to your local networks in BUCT from anywhere in the world.

🥑 WEBVPN Converter can help you convert a BUCT local area network URL into its corresponding WEBVPN URL so that you can access BUCT local resources from anywhere in the world.

Thanks

This project comes from Spencer Woo's BIT webvpn project

screenshot

API reference

Base

GET /api/<ENCODED_URL>

Note that ENCODED_URL must be URL encoded.

Optional params

  • prefix: Must be one of web (default) or lib. Adds either w.buct.edu.cn or tsg.buct.edu.cn as prefix to the URL.
  • redirect: Either true or false (default). If true, the client will be redirected to the converted/encrypted URL directly.

Example

GET /api/https%3A%2F%2Fbit.edu.cn?prefix=web&redirect=false
{
  "url": "https://w.buct.edu.cn/https/77726476706e69737468656265737421f2fe55d222347d1e7d06"
}

Development

pnpm install
pnpm dev
pnpm build

Changelog

  • May 3, 2022 - Add support for forward converter and reverse retrevnoc.
  • Apr 29, 2022 - Migrate from Vue to Next.js with Tailwind CSS.