Files
website-v2/env.template
daveoconnor 58b791eee2 Reduced steps for local development setup for social media auth (#1374) (#1383)
This is related to ticket #1374, and simplifies the steps for local
development environments to have a working login flow for github and
google.

The improvements were configuration for the client id and secret for
google and github via .env vars instead of having to go through setting
up "Social Applications" via the admin interface, and automating the
process for creating google cloud projects in which oauth clients can be
created. Documentation was adjusted to fit.

That was as far as this could be automated given limitations on both
Google Cloud Platform and Github's APIs for creating oauth clients/apps.

The terraform process can be improved if these tickets see some progress
or an API comes about to support this.

Google
https://github.com/hashicorp/terraform-provider-google/issues/16452
https://issuetracker.google.com/issues/116182848

Github
https://github.com/integrations/terraform-provider-github/issues/786
2024-10-30 11:31:34 -07:00

56 lines
1.5 KiB
Plaintext

# Database settings
PGDATABASE=postgres
PGHOST=db
PGPASSWORD=""
PGPORT=5432
PGUSER=postgres
# ALLOWED_HOSTS can be a comma-delimited string/list of host names
ALLOWED_HOSTS=localhost
# Set DJANGO_DEBUG = 0 to turn off Debug
DJANGO_DEBUG=1
# Don't use this secret key in production obviously
SECRET_KEY="top-secret"
GITHUB_TOKEN="top-secret"
# AWS_ACCESS_KEY_ID="changeme"
# AWS_SECRET_ACCESS_KEY="changeme"
# BUCKET_NAME="boost.revsys.dev"
STATIC_CONTENT_AWS_ACCESS_KEY_ID="changeme"
STATIC_CONTENT_AWS_SECRET_ACCESS_KEY="changeme"
STATIC_CONTENT_BUCKET_NAME="stage.boost.org.v2"
STATIC_CONTENT_REGION="us-east-2"
STATIC_CONTENT_AWS_S3_ENDPOINT_URL="https://s3.us-east-2.amazonaws.com"
# Mailman database settings
HYPERKITTY_DATABASE_URL="postgresql://postgres:postgres@db:5432/hyperkitty"
DATABASE_URL="postgresql://postgres@db:5432/postgres"
DATABASE_TYPE="postgres"
DATABASE_CLASS="mailman.database.postgresql.PostgreSQLDatabase"
HYPERKITTY_API_KEY="changeme!"
MAILMAN_ADMIN_USER=""
MAILMAN_ADMIN_EMAIL=""
SERVE_FROM_DOMAIN=localhost
# Celery settings
CELERY_BROKER=redis://redis:6379/0
CELERY_BACKEND=redis://redis:6379/0
CALENDAR_API_KEY=changeme
# terraform vars for google cloud oauth credential creation for local dev use
TF_VAR_google_cloud_email=
TF_VAR_google_organization_domain=
# TF_VAR_google_cloud_project_name=localboostdev # needs to change once destroyed and needed again within 30 days
# existing defaults are noted here for overriding
GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=