Temporary Release of MelonAuth2 WebApp, this repository will no longer be updated after the official repository is opened.
The web app will request /config.json during initialization for runtime configurations. You will need to create a config.json under web root folder with valid JSON data (or at least handle that GET request with valid response) to make the web app work properly.
Available configurations:
-
api_prefix(Required)The URL and base path of your Melon Auth API backend. The web app will prefix the actual API call with this value. For example: if your backend runs at
https://api.example.comand has a base path/auth, then you need to set this value as"https://api.example.com/auth", and the web app will call the verification API ashttps://api.example.com/auth/verify/123456. -
footer_content(Optional)Custom footer content which is displayed at the bottom of the web app. Note that this content will be rendered as unescaped-raw HTML. Be sure to not involving dangerous things.
Example:
{
"api_prefix": "https://api.example.com/auth",
"footer_content": "<a href='https://github.com/LanguaLab' target='_blank'>© LanguaLab</a>. All rights reserved."
}zh-cn: https://web.archive.org/web/20220928031823/https://cicini.moe/article/1/