mirror of
https://github.com/maddiethegm/Home-Inventory.git
synced 2026-02-22 10:14:27 +00:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
17a5e6314a
commit
5f7270f11c
60
README.md
60
README.md
@@ -1 +1,61 @@
|
||||
# Home-Inventory
|
||||
|
||||
|
||||
|
||||
## Config
|
||||
### API Server Configuration
|
||||
#### Save these variables in /.env
|
||||
The following environment variables are used to configure the application:
|
||||
> PORT=
|
||||
|
||||
API server listening port.
|
||||
Default: 3001
|
||||
### DB Config
|
||||
> DB_USER=
|
||||
|
||||
DB username for read/write access
|
||||
> DB_PASSWORD=
|
||||
|
||||
Password to login as DB_USER
|
||||
> DB_SERVER=
|
||||
|
||||
DB server URL
|
||||
Example: sql.example.tld
|
||||
Example: localhost
|
||||
> DB_DATABASE=
|
||||
|
||||
Your database name
|
||||
> DB_TYPE=
|
||||
|
||||
Options: mssql, oracle, mariadb, postgres
|
||||
### JWT Configuration
|
||||
> JWT_SECRET=
|
||||
|
||||
Example: your_secret_key
|
||||
> TOKEN_EXPIRY=
|
||||
|
||||
Example: '8h'
|
||||
Default: '1h'
|
||||
### LDAP Config
|
||||
> LDAP_URL=
|
||||
|
||||
Example: ldap://example.tld
|
||||
> LDAP_DOMAIN_COMPONENTS=
|
||||
|
||||
Example: 'cn=users,dc=example,dc=tld'
|
||||
> LDAP_USER_ATTRIBUTE=
|
||||
|
||||
Example: 'cn'
|
||||
### React App Config
|
||||
Save these variables client folder - default /client/.env
|
||||
### API Config
|
||||
> REACT_APP_API_URL=
|
||||
|
||||
URL to reach your API backend. This is relative to your client, not the frontend server.
|
||||
Example: http://homeinv.example.tld/api:3001
|
||||
### Footer details
|
||||
> REACT_APP_SUPPORT_CONTACT=
|
||||
|
||||
Example: "Me"
|
||||
Example: "admin@example.tld"
|
||||
> REACT_APP_FOOTER_IMG_URL=
|
||||
|
||||
Reference in New Issue
Block a user