|
@@ -64,3 +64,19 @@ docker run -d \
|
64
|
64
|
csmith/service-nginx:latest
|
65
|
65
|
```
|
66
|
66
|
|
|
67
|
+## Config files
|
|
68
|
+
|
|
69
|
+The container will write out the config to /nginx-config/vhosts.conf (which
|
|
70
|
+should put it at the root of the nginx-config volume if you're using the
|
|
71
|
+configuration described above).
|
|
72
|
+
|
|
73
|
+Each service has an include directive that allows site-specific config files to
|
|
74
|
+be placed in a directory. For example, if a container has a vhost label of
|
|
75
|
+`example.com,www.example.com`, you can create a file at `/example.com/foo.conf`
|
|
76
|
+in the nginx-data volume and it will be included within that site's `server`
|
|
77
|
+block.
|
|
78
|
+
|
|
79
|
+It's intended that `nginx-config` is mounted under `/etc/nginx/conf.d/` when
|
|
80
|
+running nginx so global configuration files can be placed alongside the
|
|
81
|
+`vhost.conf` file.
|
|
82
|
+
|