aboutsummaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 17:12:20 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 17:12:20 +0100
commitf58ab541ad55dcdec2530a14c98e3fb715e4ecf9 (patch)
treea9082a7fd41c3d3946511d43c6d84985c512ee40 /.env.example
parentupdate docker-compose to server version (diff)
downloadAnnotateChange-f58ab541ad55dcdec2530a14c98e3fb715e4ecf9.tar.gz
AnnotateChange-f58ab541ad55dcdec2530a14c98e3fb715e4ecf9.zip
Add example environment file
Diffstat (limited to '.env.example')
-rw-r--r--.env.example38
1 files changed, 38 insertions, 0 deletions
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..1a3da6d
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,38 @@
+## Flask config
+# production|development
+FLASK_ENV=development
+
+## App config
+# database to use: mysql|sqlite3
+DB_TYPE=mysql
+# secret key for flask
+SECRET_KEY=my-long-and-hard-to-guess-secret-key
+
+## Mail configuration
+#
+# Mail server config
+MAIL_SERVER=smtp
+MAIL_PORT=2525
+MAIL_USE_TLS=1
+MAIL_USERNAME=null
+MAIL_PASSWORD=null
+# Admin emails (semicolon separated)
+ADMIN_EMAILS=someone@example.com;
+
+## Database configuration
+
+# MySQL
+# - config for AnnotateChange
+AC_MYSQL_HOST=db
+AC_MYSQL_PORT=3306
+AC_MYSQL_DATABASE=annotatechange
+AC_MYSQL_USER=annotatechange
+AC_MYSQL_PASSWORD=the-sql-password
+# - config for MySQL docker image
+MYSQL_RANDOM_ROOT_PASSWORD=yes
+MYSQL_DATABASE=annotatechange
+MYSQL_USER=annotatechange
+MYSQL_PASSWORD=the-sql-password
+
+# SQLite3
+SQL3_FILENAME=app.db