Skip to content

Commit

Permalink
Create dev.env.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Nov 16, 2023
1 parent 3bac6f8 commit 825c9e5
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions config/env/dev.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
### Development environment for caves.app
### https://github.com/anorthall/caves.app
DJANGO_SETTINGS_MODULE=config.django.settings.development
DEBUG=1

# Redis
REDIS_URL=redis://redis:6379

# Security
SECRET_KEY=django-insecure-c3+z5mi8bc3ah4@_eb11ure9l(6nip1mfri!_vgbe0k-8_*1_l
DJANGO_ALLOWED_HOSTS=*
CSRF_TRUSTED_ORIGINS=http://127.0.0.1 https://127.0.0.1

# Email
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
DEFAULT_FROM_EMAIL=admin@your-app.com

# Container start options
RUN_MIGRATIONS=yes # run migrations on launch

# Site root
SITE_ROOT=http://127.0.0.1:8000

# Site title (for navbar)
SITE_TITLE=devel.app

# URLs
SITE_ROOT=http://127.0.0.1:8000
ADMIN_URL=admin/
STAFF_URL=staff/

# AWS S3
AWS_S3_CUSTOM_DOMAIN=cdn.your-app.com
AWS_S3_ACCESS_KEY_ID=
AWS_S3_SECRET_ACCESS_KEY=
AWS_STORAGE_BUCKET_NAME=
AWS_S3_REGION_NAME=
AWS_S3_SIGNATURE_VERSION=s3v4
AWS_DEFAULT_ACL=private
AWS_PRESIGNED_EXPIRY=120

# Google Maps API keys
GOOGLE_MAPS_PUBLIC_API_KEY=
GOOGLE_MAPS_PRIVATE_API_KEY=
GOOGLE_MAPS_USER_MAP_ID=


### Imgproxy configuration
### https://docs.imgproxy.net/configuration

# Rewrite URLs for development
IMGPROXY_LOCAL_DEV=true

# Network
IMGPROXY_URL=http://127.0.0.1:9000/imgproxy # used by Django only
IMGPROXY_BIND=0.0.0.0:9000
IMGPROXY_PATH_PREFIX=/imgproxy

# Logging
IMGPROXY_LOG_LEVEL=info
IMGPROXY_ENABLE_DEBUG_HEADERS=false
IMGPROXY_DEVELOPMENT_ERRORS_MODE=true
IMGPROXY_REPORT_DOWNLOADING_ERRORS=false

# Timeouts
IMGPROXY_READ_TIMEOUT=5
IMGPROXY_WRITE_TIMEOUT=5
IMGPROXY_DOWNLOAD_TIMEOUT=10
IMGPROXY_KEEP_ALIVE_TIMEOUT=300

# Image sources
IMGPROXY_TTL=30
IMGPROXY_USE_ETAG=false
IMGPROXY_SO_REUSEPORT=true
IMGPROXY_IGNORE_SSL_VERIFICATION=true
IMGPROXY_SKIP_PROCESSING_FORMATS=svg,webp,avif
IMGPROXY_MAX_SRC_RESOLUTION=50 # megapixels
IMGPROXY_MAX_SRC_FILE_SIZE=20971520 # 20MB

# Compression
IMGPROXY_STRIP_METADATA=true
IMGPROXY_STRIP_COLOR_PROFILE=true
IMGPROXY_FORMAT_QUALITY=jpeg=80,webp=70,avif=50
IMGPROXY_JPEG_PROGRESSIVE=false
IMGPROXY_PNG_INTERLACED=false
IMGPROXY_PNG_QUANTIZATION_COLORS=128
IMGPROXY_PNG_QUANTIZE=false
IMGPROXY_MAX_ANIMATION_FRAMES=64
IMGPROXY_AVIF_SPEED=8

# Signed URLs
IMGPROXY_KEY=696e736563757265 # insecure
IMGPROXY_SALT=696e736563757265 # insecure
IMGPROXY_SIGNATURE_SIZE=32

0 comments on commit 825c9e5

Please sign in to comment.