Simplify default env-template #22324
Dominic-Marcelino
started this conversation in
Feature Requests
Replies: 2 comments
-
Moved this to a feature request as we'll have to descuss a bit more explicit detail here:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@br41nslug Thanks for getting back. Following I'll try to answer the questions prom my pov. Main goalsI'll share my thoughts by setting the my main goals first:
SolutionsTo archive this, I'd suggest:
Example env-templateThat given the template could look like this: ####################################################################################################
#
# These values set environment variables which modify core settings of Directus.
#
# For all available options see:
# https://docs.directus.io/self-hosted/config-options/
#
####################################################################################################
####################################################################################################
####################################################################################################
### DEV
# If you start developing you'd most likely want to have these in your dev instance.
# On production you most likely don't want to have them
# EXTENSIONS_AUTO_RELOAD=true
# REFRESH_TOKEN_COOKIE_SECURE=false
# SESSION_COOKIE_SECURE=false
####################################################################################################
### General
# TODO: set your host
HOST="0.0.0.0"
# TODO: set your port
PORT=8055
# Todo: set your public url
PUBLIC_URL="/"
####################################################################################################
### Database
# All DB_* environment variables are passed to the connection configuration of a Knex instance.
# Based on your project's needs, you can extend the DB_* environment variables with any config
# you need to pass to the database instance.
{{ database }}
####################################################################################################
### File Storage
# TODO: set your storage provider. If you use 'local' on docker make sure to mount the volume
####################################################################################################
### Security
{{ security }}
# TODO: set a custom cookie name for REFRESH_TOKEN_COOKIE_NAME and SESSION_COOKIE_NAME
####################################################################################################
### Email
# TODO: setup an email provider
Discussions:
Really interested in some insights / feedback from the core team |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the Request
The current env-template contains some of the most important configurations as well a link to all config options.
When creating a new project it feels wrong that:
As directus global defaults (in the code) are set for a good security I'd suggest to clean this up to only include:
To keep it further cleaner I' recommend to not include that many examples for e.g db, storage and mail but just have the comment
Looking forward to your feedback!
Maintainence Strategy
n/A
Beta Was this translation helpful? Give feedback.
All reactions