File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,25 @@ is a large "monolith" server which can be composed of many smaller
25
25
26
26
## Running the server
27
27
28
- The easiest way to run an nginx reverse proxy server, with an API to
28
+ The easiest way to run an nginx reverse proxy server, with an API to
29
29
manage nginx configuration, is through docker:
30
30
31
31
``` bash
32
- docker run -p 8080:80 ghcr.io/mutablelogic/go-server
32
+ docker run -p 8080:80 -v /var/lib/go-server:/data ghcr.io/mutablelogic/go-server
33
33
```
34
34
35
- This will start a server on port 8080. Use API commands to manage the
36
- nginx configuration. Ultimately you'll want to develop your own plugins
37
- and can use this image as the base image for your own server.
35
+ This will start a server on port 8080 and use ` /var/lib/go-server ` for persistent
36
+ data. Use API commands to manage the nginx configuration. Ultimately you'll
37
+ want to develop your own plugins and can use this image as the base image for your
38
+ own server.
39
+
40
+ When you first run the server, a "root" API token is created which is used to
41
+ authenticate API requests. You can find this token in the log output or by running
42
+ the following command:
43
+
44
+ ``` bash
45
+ docker exec < container-id> cat /data/tokenauth.json
46
+ ```
38
47
39
48
## Requirements and Building
40
49
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
type Config struct {
14
14
DataPath string `hcl:"datapath" description:"Path to persistent data"`
15
15
WriteInterval time.Duration `hcl:"write-interval" description:"Interval to write data to disk"`
16
+ // TODO Group so that we can set permissions to either 640 or 600
16
17
}
17
18
18
19
// Check interfaces are satisfied
You can’t perform that action at this time.
0 commit comments