mirror of https://github.com/MaxLeiter/Drift
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
 | 
						|
 | 
						|
# Optional if you use Vercel (defaults to VERCEL_URL).
 | 
						|
# Necessary in development unless you use the vercel CLI (`vc dev`)
 | 
						|
DRIFT_URL=http://localhost:3000
 | 
						|
 | 
						|
# Optional: The first user becomes an admin. Defaults to false
 | 
						|
ENABLE_ADMIN=false
 | 
						|
 | 
						|
# Required: Next auth secret is a required valid JWT secret. You can generate one with `openssl rand -hex 32`
 | 
						|
NEXTAUTH_SECRET=7f8b8b5c5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5f5
 | 
						|
 | 
						|
# Required: but unnecessary if you use a supported host like Vercel
 | 
						|
NEXTAUTH_URL=http://localhost:3000
 | 
						|
 | 
						|
# Optional: for locking your instance
 | 
						|
REGISTRATION_PASSWORD=
 | 
						|
 | 
						|
# Optional: for if you want GitHub oauth. Currently incompatible with the registration password
 | 
						|
GITHUB_CLIENT_ID=
 | 
						|
GITHUB_CLIENT_SECRET=
 | 
						|
 | 
						|
# Optional: if you want Keycloak oauth. Currently incompatible with the registration password
 | 
						|
KEYCLOAK_ID=
 | 
						|
KEYCLOAK_SECRET=
 | 
						|
# keycloak path including realm
 | 
						|
KEYCLOAK_ISSUER=  
 | 
						|
KEYCLOAK_NAME=
 | 
						|
 | 
						|
# Optional: if you want to support credential auth (username/password, supports registration password)
 | 
						|
# Defaults to true
 | 
						|
CREDENTIAL_AUTH=true
 | 
						|
 | 
						|
# Optional:
 | 
						|
WELCOME_CONTENT="## Drift is a self-hostable clone of GitHub Gist. \nIt is a simple way to share code and text snippets. It supportsthe following:\n  \n  - Render GitHub Extended Markdown (including images)\n  - User authentication\n  - Private, public, and password protected posts\n  - Markdown is rendered and stored on the server\n  - Syntax highlighting and automatic language detection\n  - Drag-and-drop file uploading\n\n  If you want to signup, you can join at [/signup](/signup) as long as you have a passcode provided by the administrator (which you don\'t need for this demo). **This demo is on a memory-only database, so accounts and pastes can be deleted at any time.** \n\nYou can find the source code on [GitHub](https://github.com/MaxLeiter/drift)."
 | 
						|
WELCOME_TITLE="Welcome to Drift"
 |