doc: example deployment openbsd
This commit is contained in:
parent
6867f7b581
commit
b84b2bd615
2
.env
2
.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"
|
||||
|
34
README.md
34
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user