diff --git a/.env b/.env index 27d156ab..104d8fdd 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ # DATABASE_URL=postgres://postgres@localhost/my_database # SQLite DATABASE_URL=postgresql://max@localhost/brass -# 64 byte long +# 64 byte long openssl rand -base64 64 SECRET_KEY="changeInProdOrHandAb11111111111111111111111111111111111111111111" HOSTNAME="localhost" ADDRESS="127.0.0.1" diff --git a/README.md b/README.md index ecdd4d21..eeba7d0b 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,37 @@ ## Useful stuff - cargo-watch, cargo-add - mailtutan + + +## Example Deployment OpenBSD + +#!/bin/ksh + +daemon="/usr/local/bin/brass" +daemon_execdir="/etc/brass" +daemon_user="www" +daemon_logger="daemon.info" + +. /etc/rc.d/rc.subr + +#pexp="$daemon" + +rc_bg=YES +rc_reload=NO + + +# Postgres +# DATABASE_URL=postgres://postgres@localhost/my_database +# SQLite +DATABASE_URL=postgresql://brass:password@localhost/brass +# 64 byte long +SECRET_KEY="secret key" +HOSTNAME="brass.tfld.de" +ADDRESS="127.0.0.1" +PORT="8081" + +SMTP_SERVER="localhost" +SMTP_PORT="25" +# SMTP_LOGIN="" +# SMTP_PASSWORD="" +SMTP_TLSTYPE="none"