Skip to content

Temporary Release of MelonAuth2 WebApp, this repository will no longer be updated after the official repository is opened.

Notifications You must be signed in to change notification settings

Cicini/MelonAuth2-WebApp-Temporary-Release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MelonAuth2-WebApp-Temporary-Release

Temporary Release of MelonAuth2 WebApp, this repository will no longer be updated after the official repository is opened.

config.json

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.com and 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 as https://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."
}

How to use

zh-cn: https://web.archive.org/web/20220928031823/https://cicini.moe/article/1/

About

Temporary Release of MelonAuth2 WebApp, this repository will no longer be updated after the official repository is opened.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages