diff --git a/.env b/examples/.env similarity index 100% rename from .env rename to examples/.env diff --git a/examples/.env.example b/examples/.env.example new file mode 100644 index 0000000..4a3e4a5 --- /dev/null +++ b/examples/.env.example @@ -0,0 +1,29 @@ +SECRET_KEY= + +# i.e. an prosody server +# create a nologin unix user `useradd -r -s /sbin/nologin ` +LOGGING_XMPP_SERVER="example.com" +LOGGING_XMPP_SENDER="" +LOGGING_XMPP_PASSWORD="" +LOGGING_XMPP_RECIPIENT="@example.com" +LOGGING_XMPP_COMMAND="/usr/bin/sendxmpp" +LOGGING_XMPP_USE_TLS=1 + +# then create postrgresql role and database +# DATABASE_URL="postgresql://:@localhost/" +# alternatively for unix socket connection +DATABASE_URL="postgresql://:@/?host=/var/run/postgresql" +DATABASE_NAME="" +DATABASE_USER="" +DATABASE_PASSWORD="" + +MAIL_SERVER='smtp.googlemail.com' +MAIL_USE_TLS=1 +MAIL_PORT=587 +MAIL_USERNAME="@gmail.com" +MAIL_PASSWORD="" + +MAIL_ADMINS="@gmail.com" +EXTERNAL_URL="https://photo_app.example.com" + +PHOTO_URL="https://photos.example.com/"