Authentication

To secure your admin panel and set up authentication, we will utilize the Cloudflare Zero Trust service.

Setup Application

Follow the steps below to configure your application:

  • Log in to your Cloudflare account.
  • Navigate to Zero Trust. Select Access and then click on Applications.
  • Click + Add an application and choose the Self Hosted option.
  • Set the Application Name to Xendash - Example and Session Duration to 1 week
  • Click the + Add public hostname button and add two entries.
  • For the first entry, set Subdomain to admin and Domain to example.com.
  • For the second entry, leave the Subdomain empty and set Domain to example-admin.pages.dev.

Access Policies

Adding Access Policies and Completing the Setup

  • Under the Access policies section, click the Select existing policies button.
  • Choose XenDash - Central and click Confirm.
  • Continue clicking Next until the setup is complete.

✨ All set! The admin panel is now secure, and only authorized users can access the app.