|
1 | | -# Rsync - Docker mod for openssh-server |
| 1 | +# Auto-reload - Docker mod for Nginx based images |
2 | 2 |
|
3 | | -This mod adds rsync to openssh-server, to be installed/updated during container start. |
| 3 | +This mod allows Nginx to be reloaded automatically whenever there are valid changes to the following files and folders: |
| 4 | +- /config/nginx/authelia-location.conf |
| 5 | +- /config/nginx/authelia-server.conf |
| 6 | +- /config/nginx/geoip2.conf |
| 7 | +- /config/nginx/ldap.conf |
| 8 | +- /config/nginx/nginx.conf |
| 9 | +- /config/nginx/proxy-confs |
| 10 | +- /config/nginx/proxy.conf |
| 11 | +- /config/nginx/site-confs |
| 12 | +- /config/nginx/ssl.conf |
4 | 13 |
|
5 | | -In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync` |
| 14 | +In the container's docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:swag-auto-reload` |
6 | 15 |
|
7 | | -If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:openssh-server-rsync|linuxserver/mods:openssh-server-mod2` |
| 16 | +If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-mod2` |
8 | 17 |
|
9 | | -# Mod creation instructions |
| 18 | +If you'd like for Nginx to be reloaded when other files or folders are modified (not included in our default list above), set a new environment variable, `WATCHLIST`, and set it to a list of container relative paths separated by `|` like the below example: |
10 | 19 |
|
11 | | -* Fork the repo, create a new branch based on the branch `template`. |
12 | | -* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done. |
13 | | -* Inspect the `root` folder contents. Edit, add and remove as necessary. |
14 | | -* Edit this readme with pertinent info, delete these instructions. |
15 | | -* Finally edit the `.github/workflows/BuildImage.yml`. Customize the build branch, and the vars for `BASEIMAGE` and `MODNAME`. |
16 | | -* Ask the team to create a new branch named `<baseimagename>-<modname>`. Baseimage should be the name of the image the mod will be applied to. The new branch will be based on the `template` branch. |
17 | | -* Submit PR against the branch created by the team. |
| 20 | +`WATCHLIST="/config/nginx/custom.conf|/config/nginx/customfolder"` |
0 commit comments