You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update default locations for configs and data.
* Update readme to reflect the new default locations.
* Remove license from test configs and update data path.
---------
Signed-off-by: Gregory Schofield <greg.c.schofield@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+98-7Lines changed: 98 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,14 @@ Gemfast is currently distributed in two different ways, a `docker` image and pre
33
33
34
34
When running Gemfast as a container, its important to mount the following directories:
35
35
36
-
* /var/gemfast - The directory for the Gemfast data including gems and database
37
-
* /etc/gemfast - The directory for the gemfast.hcl config file. It is possible to configure the config file path using `env GEMFAST_CONFIG_FILE=/path/to/my/file.hcl`
36
+
* /var/lib/gemfast/data - The directory for the Gemfast data including gems and database
37
+
* /etc/gemfast - The directory for the gemfast.hcl config file
38
38
39
39
```bash
40
40
docker run -d --name gemfast-server \
41
41
-p 2020:2020 \
42
-
-v /etc/gemfast:/etc/gemfast \
43
-
-v /var/gemfast:/var/gemfast \
42
+
-v ./gemfast.hcl:/etc/gemfast/gemfast.hcl:ro \
43
+
-v ./data:/var/lib/gemfast/data \
44
44
ghcr.io/gemfast/server:latest
45
45
```
46
46
@@ -63,11 +63,102 @@ make
63
63
./bin/gemfast-server
64
64
```
65
65
66
-
## Docs
66
+
## Configuration
67
67
68
-
You can configure gemfast settings using the `/etc/gemfast/gemfast.hcl` file. There are many options all of which are listed in the documentation.
68
+
### Configuration File
69
69
70
-
For more information see: https://gemfast.io/docs/configuration/
70
+
Gemfast is configured using an HCL file. You can customize the location of this file using the `$GEMFAST_CONFIG_FILE` environment variable or by passing the `--config` argument when starting the server.
71
+
72
+
The places Gemfast automatically checks for configuration files are: `["/etc/gemfast/gemfast.hcl", "~/.config/gemfast/gemfast.hcl"]`
73
+
74
+
### Configuration Options
75
+
76
+
```terraform
77
+
# ========== gemfast.hcl ==========
78
+
79
+
# Port to bind the HTTP server to. Defaults to 2020.
0 commit comments