Skip to content

Latest commit

 

History

416 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Erinn.me

A project utilizing Mabinogi's OpenAPI to proview market, horn and more
View Demo · Report Bug · Request Feature

Screenshots



Built With

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Installation

  1. Clone the repo

    git clone https://github.com/sweatpotato13/erinn.me.git
  2. Install dependencies

    pnpm install
  3. write .env file

    cp .env.example .env
    nano .env
  4. Start the development server

    pnpm dev
  5. or build and start the production server

    pnpm build
    pnpm start

Rate-limit deployment

The API proxy trusts only Vercel's x-vercel-forwarded-for header for client identity and ignores x-forwarded-for. Any reverse proxy placed in front of Vercel must strip client-supplied x-vercel-forwarded-for values before forwarding requests.

Configure a single programmatic rate-limit rule in the Vercel Firewall dashboard:

ID Path Limit Window
erinn-api /api/* 120 60 seconds

The rule uses @vercel/firewall with the ID erinn-api. If the rule is missing or the WAF check fails, requests pass through (fail-open). Local development and Vercel Preview deployments bypass WAF checks entirely.

To verify the Production WAF path before merging to main:

  1. Add ENABLE_PREVIEW_RATE_LIMIT=true to the Preview environment, scoped to the develop branch, and redeploy it.
  2. Request a protected API route and confirm it returns HTTP 200 with an X-RateLimit-Limit: 120 header.
  3. Remove ENABLE_PREVIEW_RATE_LIMIT after verification and redeploy develop to restore the default Preview bypass.

Never add ENABLE_PREVIEW_RATE_LIMIT to Production: Production always applies the WAF regardless of this variable.

(back to top)

About

A project utilizing Mabinogi's OpenAPI to proview market, horn and more

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages