# SWAG

> Secure Web Application Gateway: Nginx with Certbot and fail2ban in one container

Source: https://talira.ai/catalog/swag-00z5h1q9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [infrastructure / proxies / reverse proxies](https://talira.ai/categories/infrastructure/proxies/reverse-proxies), [networking / tls](https://talira.ai/categories/networking/tls)
- Platforms: docker, linux[^2]
- Licence: GPL-3.0-only[^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^2][^4]
- Plugins: yes[^2][^5]
- Backed by: [LinuxServer.io](https://talira.ai/orgs/linuxserver.md)

SWAG (Secure Web Application Gateway, formerly LinuxServer.io's letsencrypt image) is a [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image from LinuxServer.io that bundles an [Nginx](https://talira.ai/catalog/nginx-nfjkekkp.md) web server and reverse proxy with PHP, a [Certbot](https://talira.ai/catalog/certbot-d2gnzbtd.md) client that gets and renews free certificates from [Let's Encrypt](https://talira.ai/catalog/let-s-encrypt-dqtcmges.md) or ZeroSSL (HTTP or DNS validation, including wildcards), and fail2ban for intrusion prevention. It ships preset reverse proxy configs for hundreds of popular self-hosted apps as sample files you rename to enable, and configs for HTTP basic auth, LDAP and [Authelia](https://talira.ai/catalog/authelia-rzsda9ak.md). Docker mods add a GoAccess dashboard, [CrowdSec](https://talira.ai/catalog/crowdsec-vd2qswsz.md), MaxMind geoblocking and automatic proxy configs for containers labelled `swag=enable`. You configure it by editing Nginx files, not through a web UI. GPL-3.0.

## Links

- Website: https://docs.linuxserver.io/general/swag/
- GitHub: https://github.com/linuxserver/docker-swag
- Docs: https://docs.linuxserver.io/general/swag/

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/swag-0hspce416xcb2w>[^1]

## Problems it solves

- put all my self-hosted apps behind one Nginx reverse proxy with free HTTPS in a single container
- get a wildcard certificate for my home server's domain through Cloudflare DNS and renew it automatically
- ban IPs that keep failing logins on my reverse proxy
- set up a reverse proxy for Jellyfin, Nextcloud or the arr apps without writing the Nginx config from scratch
- my ISP blocks port 80, so I need certificates through DNS validation for my homelab
- protect self-hosted apps with Authelia or LDAP login at the proxy
- share Let's Encrypt certificates from my proxy with other containers like Emby or ZNC
- automatically proxy new Docker containers just by adding a label
- block traffic from other countries to my home server using GeoIP
- add CrowdSec protection to my Nginx reverse proxy in Docker
- host a small PHP site or WordPress next to my reverse proxy
- see a dashboard of who is hitting my reverse proxy
- serve my self-hosted apps over HTTP/3 (QUIC)

## Features

- Nginx web server and reverse proxy with PHP
- built-in Certbot: free certificates from Let's Encrypt or ZeroSSL, renewed automatically using ACME Renewal Information
- HTTP and DNS validation, with many Certbot DNS plugins and wildcard certificates
- fail2ban with five Nginx jails enabled by default
- preset reverse proxy configs for popular apps, subdomain and subfolder styles
- HTTP basic auth (htpasswd), LDAP auth and Authelia configs
- certificates exported as PEM, PFX and a private-fullchain bundle for other containers
- QUIC/HTTP3 support (opt-in per proxy config)
- Docker mods: GoAccess dashboard, CrowdSec bouncer, MaxMind geoblocking, Cloudflare real IP and auto-proxy from container labels
- automatic Nginx reload when watched config files change (SWAG_AUTORELOAD)
- read-only container filesystem support
- x86-64 and arm64 images

## Limitations

- Doesn't run on 32-bit ARM (armhf): images are built for x86-64 and arm64 only[^2]

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by LinuxServer.io
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Based on [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md)

## Alternatives

- [Nginx Proxy Manager](https://talira.ai/catalog/nginx-proxy-manager-2a4nrjt7.md): Expose your services easily and securely
- [Zoraxy](https://talira.ai/catalog/zoraxy-s40fbnn5.md): A general purpose HTTP reverse proxy and forwarding tool
- [Caddy](https://talira.ai/catalog/caddy-vc8j4642.md): The Ultimate Server with Automatic HTTPS
- [Nginx UI](https://talira.ai/catalog/nginx-ui-hyxg8yyq.md): Yet another WebUI for Nginx
- [Traefik Proxy](https://talira.ai/catalog/traefik-proxy-rzfqntzc.md): The Cloud Native Application Proxy
- [HAProxy](https://talira.ai/catalog/haproxy-19gvbtth.md): The Reliable, High Performance TCP/HTTP Load Balancer

## Sources

[^1]: https://ca.unraid.net/api/apps/swag-0hspce416xcb2w (checked 20 Nov 2026)
[^2]: https://github.com/linuxserver/docker-swag (checked 20 Nov 2026)
[^3]: https://github.com/linuxserver/docker-swag/blob/master/LICENSE (checked 20 Nov 2026)
[^4]: https://docs.linuxserver.io/general/swag/ (checked 20 Nov 2026)
[^5]: https://github.com/linuxserver/docker-mods/tree/swag-auto-proxy (checked 20 Nov 2026)
