Prepare backend for frontend integration
This commit is contained in:
1 parent
739c22550c
commit
f8fb871bcc
4 files changed
+12
-7
No files matched your search
@@ -27,7 +27,7 @@ Set secure MariaDB passwords in `.env`. Then, set at least these values in
|
||||
|
||||
```json
|
||||
{
|
||||
"abbr": "drivershub",
|
||||
"abbr": "api",
|
||||
"name": "Drivers Hub",
|
||||
"domain": "hub.example.com",
|
||||
"prefix": "/api",
|
||||
@@ -39,7 +39,8 @@ Set secure MariaDB passwords in `.env`. Then, set at least these values in
|
||||
"db_name": "drivershub",
|
||||
"db_data_directory": "/var/lib/mysqlext/",
|
||||
"redis_host": "valkey",
|
||||
"redis_port": 6379
|
||||
"redis_port": 6379,
|
||||
"external_plugins": ["client-config"]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -50,6 +51,8 @@ from `config_sample.json`. Restart the backend after you change
|
||||
Use the same database password in `.env` and `config/config.json`.
|
||||
Set `domain` to the public host name of the backend. Do not include a protocol or
|
||||
path.
|
||||
Set `prefix` to `/{abbr}` when you use the official frontend. The
|
||||
`client-config` plugin uses this relation to create frontend API URLs.
|
||||
|
||||
## Start the deployment
|
||||
|
||||
@@ -59,8 +62,9 @@ docker compose up -d
|
||||
docker compose ps
|
||||
```
|
||||
|
||||
By default, the API is available at `http://localhost:7777/api`. Swagger UI is
|
||||
available at `http://localhost:7777/api/doc`.
|
||||
By default, the API is available at `http://localhost:17777/api`. Swagger UI is
|
||||
available at `http://localhost:17777/api/doc`.
|
||||
The default bind address is suitable for a reverse proxy on the Docker host.
|
||||
|
||||
## Store persistent data
|
||||
|
||||
|
||||
Reference in new issue
Block a user