Skip to content

Commit

Permalink
Refactor env config and add new env var keys doc (#37)
Browse files Browse the repository at this point in the history
* refactor env config

* added documentation on new env vars in .env.example

* fix bootstrap

* Update .gitignore

remove .idea

---------

Co-authored-by: Crypta Eve <[email protected]>
  • Loading branch information
hermesdj and Crypta-Eve committed Jun 12, 2024
1 parent e111c00 commit a559891
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .env → .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ APP_URL=https://${SEAT_DOMAIN}

APP_KEY=insecure

# Application default locale
# If you need to change the default locale of the server for notifications you need to put the locale code here
# e.g. fr, en, ru, etc.
APP_LOCALE=en

# App Environment
APP_ENV=local

Expand Down Expand Up @@ -175,8 +180,14 @@ EVE_CALLBACK_URL=${APP_URL}/auth/eve/callback
# ---------------------------

# This is an advanced setting. Understand the ramifications of change.

# The type of driver that eseye should use for the cache
# available values are file, redis
ESEYE_CACHE_DRIVER=file

# When using the file driver, this is the name of the folder in seat/storage that will store the cache files
ESEYE_CACHE_STORAGE_PATH=eseye

# When using the redis driver, this is the name of the redis connection. If using 'cache', it will reuse the existing
# redis cache configuration found in seat/config/cache.php. It must be a configured connection
ESEYE_CACHE_CONNECTION=cache
ESEYE_CACHE_LOCK_CONNECTION=default
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANC
curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANCH/docker-compose.mariadb.yml -o $SEAT_DOCKER_INSTALL/docker-compose.mariadb.yml
curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANCH/docker-compose.traefik.yml -o $SEAT_DOCKER_INSTALL/docker-compose.traefik.yml
curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANCH/docker-compose.proxy.yml -o $SEAT_DOCKER_INSTALL/docker-compose.proxy.yml
curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANCH/.env -o $SEAT_DOCKER_INSTALL/.env
curl -L https://raw.githubusercontent.com/eveseat/seat-docker/$SEAT_GITHUB_BRANCH/.env.example -o $SEAT_DOCKER_INSTALL/.env

echo "Generating a random database password and writing it to the .env file."
sed -i -- 's/DB_PASSWORD=i_should_be_changed/DB_PASSWORD='$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c22 ; echo '')'/g' .env
Expand Down

0 comments on commit a559891

Please sign in to comment.