Sign in

Mod for nginx

Proxy-conf

This mod adds some of the proxy-conf functionality that is baked into SWAG, to Nginx.

arch
amd64
built

Use it#

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

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:nginx-proxy-confs

:nginx-proxy-confs always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:nginx-proxy-confs-5737cd7
services:
  nginx:
    image: ghcr.io/linuxserver-playground/nginx:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:nginx-proxy-confs

Details#

This mod does some reshuffling to the files that originally ships with our Nginx image. You have to track changes to these files yourself. If you are adding this mod to an existing install you have to modify, or replace these files yourself.

File Change
site-confs/default Added include directives to load the files from proxy-confs/
nginx.conf Moved some directives to proxy.conf. Added the required map for websockets
proxy.conf Direct copy from SWAG
ssl.conf Based on the same file from SWAG, but changed certificate location

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 nginx-proxy-confs mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like nginx-proxy-confs for <another image>, and test it.

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

Source: nginx-proxy-confs branch (opens in a new tab). Every mod