Sign in

Mod for swag

Auto-reload

This mod allows Nginx to be reloaded automatically whenever there are new files, or valid changes to the files in /config/nginx.

arch
amd64
built

This mod is deprecated

This mod is deprecated. We will not offer support for this mod and it will not be updated. This mod's functionality is now included in the SWAG image

Use it#

Set DOCKER_MODS on the swag container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:swag-auto-reload

:swag-auto-reload always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:swag-auto-reload-b2f025b
services:
  swag:
    image: ghcr.io/linuxserver-playground/swag:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:swag-auto-reload

Details#

DEPRECATION NOTICE

This mod is deprecated. We will not offer support for this mod and it will not be updated. This mod’s functionality is now included in the SWAG image

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:

WATCHLIST="/config/nginx/custom.conf|/config/nginx/customfolder"

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The swag-auto-reload mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like swag-auto-reload for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: swag-auto-reload branch (opens in a new tab). Every mod