Melody AuthMelody Auth
  • Auth Server Setup
  • Admin Panel Setup
  • Email Provider Setup
  • SMS Provider Setup
  • External Identity Providers

    • Social Sign-In Provider Setup
    • OIDC SSO Setup
    • SAML SSO Setup
  • Main Features

    • Authentication
    • JWT & JWKS
    • Multi-Factor Authentication
    • Role-Based Access Control
    • Policies
    • Organizations
  • Additional Features

    • User Attributes
    • App Banners
    • Organization Groups
    • Impersonation
    • Log Management
  • Customization

    • Auth Server Configuration
    • Branding
    • Localization
  • Frontend SDKs

    • React SDK
    • Angular SDK
    • Vue SDK
    • Web SDK
  • Backend APIs

    • S2S API Setup
    • S2S API Swagger
    • Embedded Auth API Setup
    • Embedded Auth API Swagger
  • Deployment Pipelines
  • Rotate JWT Secret
  • English
  • zh-CN
  • Auth Server Setup
  • Admin Panel Setup
  • Email Provider Setup
  • SMS Provider Setup
  • External Identity Providers

    • Social Sign-In Provider Setup
    • OIDC SSO Setup
    • SAML SSO Setup
  • Main Features

    • Authentication
    • JWT & JWKS
    • Multi-Factor Authentication
    • Role-Based Access Control
    • Policies
    • Organizations
  • Additional Features

    • User Attributes
    • App Banners
    • Organization Groups
    • Impersonation
    • Log Management
  • Customization

    • Auth Server Configuration
    • Branding
    • Localization
  • Frontend SDKs

    • React SDK
    • Angular SDK
    • Vue SDK
    • Web SDK
  • Backend APIs

    • S2S API Setup
    • S2S API Swagger
    • Embedded Auth API Setup
    • Embedded Auth API Swagger
  • Deployment Pipelines
  • Rotate JWT Secret
  • English
  • zh-CN
  • Deployment Pipelines

Deployment Pipelines

There are three deployment pipelines (Github Actions) you can take advantage of:

  • Pipeline to deploy auth server to Cloudflare Workers
  • Pipeline to deploy admin panel to Cloudflare Workers
  • Pipeline to deploy admin panel to Vercel

Make sure you have completed the Auth Server Setup and Admin Panel Setup before proceeding.

Deploy Auth Server to Cloudflare Workers

  • Check out the .github/workflows/server-deploy.yml file.
  • In your repository, go to Settings -> Secrets and Variables -> Actions -> New repository secret. Add the following secrets:
    • CLOUDFLARE_API_TOKEN # Create a new token in your Cloudflare dashboard with the following permissions:
      • Account - D1 - Edit
      • Account - Workers KV Storage - Edit
      • Account - Workers Scripts - Edit
    • CLOUDFLARE_ACCOUNT_ID # The account ID of your Cloudflare account

Deploy Admin Panel to Cloudflare Workers

  • Check out the .github/workflows/admin-panel-cloudflare-deploy.yml file.
  • In your repository, go to Settings -> Secrets and Variables -> Actions -> New repository secret. Add the following secrets:
    • CLOUDFLARE_API_TOKEN # Create a new token in your Cloudflare dashboard with the following permissions:
      • Account - D1 - Edit
      • Account - Workers KV Storage - Edit
      • Account - Workers Scripts - Edit
    • CLOUDFLARE_ACCOUNT_ID # The account ID of your Cloudflare account
  • In your repository, go to Settings -> Secrets and Variables -> Variables -> New variable. Add the following variables:
    • NEXT_PUBLIC_CLIENT_URI # The URI of your admin panel
    • NEXT_PUBLIC_SERVER_URI # The URI of your auth server
    • NEXT_PUBLIC_CLIENT_ID # The client ID of your admin panel

Deploy Admin Panel to Vercel

  • Check out the .github/workflows/admin-panel-vercel-deploy.yml file.
  • In your repository, go to Settings -> Secrets and Variables -> Actions -> New repository secret. Add the following secrets:
    • VERCEL_TOKEN # Create a new token in your Vercel dashboard
    • VERCEL_ORG_ID # The organization ID of your Vercel account
    • VERCEL_PROJECT_ID # The project ID of your Vercel project
Last Updated: 2/21/25, 3:28 AM
Contributors: Baozier