move DB credentials to environment variables
This commit is contained in:
parent
96cc64464f
commit
1667921f5b
4 changed files with 38 additions and 8 deletions
|
@ -16,7 +16,11 @@ easy! just `git clone` this repo and `go build` from the root. `arimelody-web(.e
|
|||
|
||||
the webserver depends on some environment variables (don't worry about forgetting some; it'll be sure to bug you about them):
|
||||
|
||||
- `HTTP_DOMAIN`: the domain the webserver will use for generating oauth redirect URIs (default `https://arimelody.me`)
|
||||
- `ARIMELODY_HTTP_DOMAIN`: the domain the webserver will use for generating oauth redirect URIs (default `https://arimelody.me`)
|
||||
- `ARIMELODY_DB_HOST`: the host address of a postgres database.
|
||||
- `ARIMELODY_DB_NAME`: the name of the database.
|
||||
- `ARIMELODY_DB_USER`: the username for the database.
|
||||
- `ARIMELODY_DB_PASS`: the password for the database.
|
||||
- `DISCORD_ADMIN`[^1]: the user ID of your discord account (discord auth is intended to be temporary, and will be replaced with its own auth system later)
|
||||
- `DISCORD_CLIENT`[^1]: the client ID of your discord OAuth application.
|
||||
- `DISCORD_SECRET`[^1]: the client secret of your discord OAuth application.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue