freechat/json-api/.env
shockrah c9658ad5b4 + Adding command line flag [-H/--hmac] to specify hmac file path
This is really just for testing purposes since the files tend to be in
awkward to reach path

- Removing if args.len == 0 check
Basically cannon-fodder tbh

* Auth now reads hmac path from environment var

! All of the above is added for the wss hmac as well

+ Adding command line flag [-W/--wss-hmac] to specify wss-hmac file path
2021-04-26 01:58:18 -07:00

20 lines
619 B
Bash

DATABASE_URL=mysql://freechat_dev:password@localhost:3306/freechat
DATABASE_NAME=freechat
DATABASE_PASS=password
DATABASE_USER=freechat_dev
DATABASE_HOST=localhost
DATABASE_PORT=3306
# Note that these should literally never point to the same file
# that completely breaks the web socket's permissions+authentication model
HMAC_PATH=hmac.secret
WSS_HMAC_PATH=wss-hmac.secret
# Server meta things
SERVER_NAME="Freechat Dev Server"
SERVER_DESCRIPTION="Server for sick development things"
# NOTE: most clients shouldn't expect these to end with a slash
PUBLIC_URL=http://localhost:4536
PUBLIC_WS_URL=ws://localhost:5648