Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 3.1 KB

SELF-HOSTING.md

File metadata and controls

53 lines (44 loc) · 3.1 KB

Self Hosting | Installation

Here are the steps to setup this project

All variables

  • NEXTAUTH_SECRET: go to generate-secret.vercel.app/32 to generate a new next-auth secret
  • NEXTAUTH_URL: http://localhost:3000 only needed for development
  • DATABASE_URL: a mysql database connection string, you should use planetscale.com to provision one
  • GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET: see Google OAuth credentials section below
  • FACEBOOK_APP_ID, FACEBOOK_APP_SECRET: see Facebook OAuth credentials section below
  • NEXT_PUBLIC_UPLOAD_URL: a self host version of this project discloud
  • NEXT_PUBLIC_IMAGE_UPLOAD_URL: See discord webhook url section below

Google OAuth credentials

  • Go to console.cloud.google.com/
  • Create a new project
  • Go to "API & Services" -> OAuth Content Screen
    • Enter the app name, email, and the authorized domains | Save and continue
    • Add "auth/userinfo.email" and "auth/userinfo.profile" to the scope | Save and continue
    • Continue to dashboard
  • Press "PUBLISH APP"
  • Go to Credentials
  • Copy the client id and secret and use as the env. See .env.example

Facebook OAuth credentials

Discord webhook url

  • Go to discord and create a new Server. The only member must be you only so that no one can access your files.
  • Create a new text channel
  • Click on the cog icon ⚙️ to "Edit channel"
  • Go to "Integration" tab
  • Click on "View webhooks"
  • "Create a new webhook" and then "Copy Webhook URL". Use that URL as DISCORD_WEBHOOK_URL environment variable