-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates the .env specifically for docker that omits key variables needed to be defined at runtime by the user.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This .env file is for use in the Docker build step, setting all the internal | ||
# variables that could be later overridden by the user. | ||
|
||
# We expect the following variables to be set by the user: | ||
# DB_HOST | ||
# DB_USER | ||
# DB_PASS | ||
# REDIS_HOST | ||
|
||
# define the port on which the HTTP server will listen. | ||
PORT=8080 | ||
|
||
# MySQL Database Configuration | ||
# The following variables should be pretty straightforward. | ||
# DB_PORT is the MySQL server port | ||
DB_PORT=3306 | ||
|
||
# Secret Session Variables | ||
# Used by express-session middleware for encryption. This is just a temporary example. | ||
# In production, use a secure generator for this: | ||
# EX: openssl rand -hex 25 | ||
SESS_SECRET=zC8YmujYRe9EoJVXUEJVzuK3pxDCJzYySJo5Vj5CefwXiiPYCVehutAJVqQ6SNwd | ||
|
||
# define logging level for the npm debug module. | ||
DEBUG=app,errors | ||
|
||
# define the directory where reports, files, and images will be uploaded. | ||
# Upload directory requirements: | ||
# - Must be writable by the application user. | ||
# - Must be a relative directory within the Bhima installation. | ||
UPLOAD_DIR='client/upload' | ||
|
||
# Report directory (Define where reports will be saved on the server) | ||
REPORT_DIR='' | ||
|
||
# SMTP Credentials | ||
SMTP_USERNAME="user@smtp.server" | ||
SMTP_PASSWORD="SomePassword" | ||
SMTP_HOST="some.host.com" |