{"app":{"Date":"2026-10-20","Icon":"https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png","Name":"swag","Repo":"linuxserver's Repository","Shell":"bash","Video":"https://www.youtube.com/watch?v=3uW97tXYWVI","stars":419,"Config":[{"value":"","@attributes":{"Mask":"false","Mode":"tcp","Name":"WebUI","Type":"Port","Target":"443","Default":"443","Display":"always","Required":"true","Description":"HTTPS port"}},{"value":"","@attributes":{"Mask":"false","Mode":"tcp","Name":"Port: 80","Type":"Port","Target":"80","Default":"80","Display":"always","Required":"false","Description":"HTTP port (required for HTTP validation and HTTP - HTTPS redirect)"}},{"value":"","@attributes":{"Mask":"false","Mode":"udp","Name":"Port: 443","Type":"Port","Target":"443","Default":"443","Display":"always","Required":"false","Description":"QUIC (HTTP/3) port. Must be enabled in the default and proxy confs."}},{"value":"","@attributes":{"Mask":"false","Mode":"rw","Name":"Appdata","Type":"Path","Target":"/config","Default":"","Display":"advanced","Required":"true","Description":"Persistent config files"}},{"value":"","@attributes":{"Mask":"false","Name":"URL","Type":"Variable","Target":"URL","Default":"example.com","Display":"always","Required":"true","Description":"Top url you have control over (e.g. `example.com` if you own it, or `customsubdomain.example.com` if dynamic dns)."}},{"value":"","@attributes":{"Mask":"false","Name":"VALIDATION","Type":"Variable","Target":"VALIDATION","Default":"http|dns","Display":"always","Required":"true","Description":"Certbot validation method to use, options are `http` or `dns` (`dns` method also requires `DNSPLUGIN` variable set)."}},{"value":"","@attributes":{"Mask":"false","Name":"SUBDOMAINS","Type":"Variable","Target":"SUBDOMAINS","Default":"www,","Display":"always","Required":"false","Description":"Subdomains you'd like the cert to cover (comma separated, no spaces) ie. `www,ftp,cloud`. For a wildcard cert, set this *exactly* to `wildcard` (wildcard cert is available via `dns` validation only)"}},{"value":"","@attributes":{"Mask":"false","Name":"CERTPROVIDER","Type":"Variable","Target":"CERTPROVIDER","Default":"","Display":"always","Required":"false","Description":"Optionally define the cert provider. Set to `zerossl` for ZeroSSL certs (requires existing ZeroSSL account(https://app.zerossl.com/signup) and the e-mail address entered in `EMAIL` env var). Otherwise defaults to Let's Encrypt."}},{"value":"","@attributes":{"Mask":"false","Name":"CERT_PROFILE","Type":"Variable","Target":"CERT_PROFILE","Default":"","Display":"always","Required":"false","Description":"Optionally define a cert profile to use for cert generation. This is useful if you want to use a custom cert profile instead of the default one. Currently only supported for Let's Encrypt. See https://letsencrypt.org/docs/profiles/"}},{"value":"","@attributes":{"Mask":"false","Name":"DNSPLUGIN","Type":"Variable","Target":"DNSPLUGIN","Default":"cloudflare","Display":"always","Required":"false","Description":"Required if `VALIDATION` is set to `dns`. Options are `acmedns`, `aliyun`, `azure`, `bunny`, `cloudflare`, `cpanel`, `desec`, `digitalocean`, `directadmin`, `dnsimple`, `dnsmadeeasy`, `dnspod`, `do`, `domeneshop`, `dreamhost`, `duckdns`, `dynu`, `freedns`, `gandi`, `gehirn`, `glesys`, `godaddy`, `google`, `he`, `hetzner`, `hetzner-cloud`, `infomaniak`, `inwx`, `ionos`, `linode`, `loopia`, `luadns`, `mijn-host`, `namecheap`, `netcup`, `njalla`, `nsone`, `ovh`, `porkbun`, `rfc2136`, `route53`, `sakuracloud`, `standalone`, `transip`, and `vultr`. Also need to enter the credentials into the corresponding ini (or json for some plugins) file under `/config/dns-conf`."}},{"value":"","@attributes":{"Mask":"false","Name":"PROPAGATION","Type":"Variable","Target":"PROPAGATION","Default":"","Display":"always","Required":"false","Description":"Optionally override (in seconds) the default propagation time for the dns plugins."}},{"value":"","@attributes":{"Mask":"false","Name":"EMAIL","Type":"Variable","Target":"EMAIL","Default":"","Display":"always","Required":"false","Description":"Optional e-mail address used for cert expiration notifications (Required for ZeroSSL)."}},{"value":"","@attributes":{"Mask":"false","Name":"ONLY_SUBDOMAINS","Type":"Variable","Target":"ONLY_SUBDOMAINS","Default":"false","Display":"always","Required":"false","Description":"If you wish to get certs only for certain subdomains, but not the main domain (main domain may be hosted on another machine and cannot be validated), set this to `true`"}},{"value":"","@attributes":{"Mask":"false","Name":"EXTRA_DOMAINS","Type":"Variable","Target":"EXTRA_DOMAINS","Default":"","Display":"always","Required":"false","Description":"Additional fully qualified domain names (comma separated, no spaces) ie. `example.net,subdomain.example.net,*.example.org`"}},{"value":"","@attributes":{"Mask":"false","Name":"STAGING","Type":"Variable","Target":"STAGING","Default":"false","Display":"always","Required":"false","Description":"Set to `true` to retrieve certs in staging mode. Rate limits will be much higher, but the resulting cert will not pass the browser's security test. Only to be used for testing purposes."}},{"value":"","@attributes":{"Mask":"false","Name":"DISABLE_F2B","Type":"Variable","Target":"DISABLE_F2B","Default":"","Display":"always","Required":"false","Description":"Set to `true` to disable the Fail2ban service in the container, if you're already running it elsewhere or using a different IPS."}},{"value":"","@attributes":{"Mask":"false","Name":"SWAG_AUTORELOAD","Type":"Variable","Target":"SWAG_AUTORELOAD","Default":"","Display":"always","Required":"false","Description":"Set to `true` to enable automatic reloading of confs on change without stopping/restarting nginx. Your filesystem must support inotify. This functionality was previously offered via mod(https://github.com/linuxserver/docker-mods/tree/swag-auto-reload)."}},{"value":"","@attributes":{"Mask":"false","Name":"SWAG_AUTORELOAD_WATCHLIST","Type":"Variable","Target":"SWAG_AUTORELOAD_WATCHLIST","Default":"","Display":"always","Required":"false","Description":"A pipe(https://en.wikipedia.org/wiki/Vertical_bar)-separated list of additional folders for auto reload to watch in addition to `/config/nginx`"}},{"value":"","@attributes":{"Mask":"false","Name":"PUID","Type":"Variable","Target":"PUID","Default":"99","Display":"advanced","Required":"true","Description":"Container Variable: PUID"}},{"value":"","@attributes":{"Mask":"false","Name":"PGID","Type":"Variable","Target":"PGID","Default":"100","Display":"advanced","Required":"true","Description":"Container Variable: PGID"}},{"value":"","@attributes":{"Mask":"false","Name":"UMASK","Type":"Variable","Target":"UMASK","Default":"022","Display":"advanced","Required":"false","Description":"Container Variable: UMASK"}}],"GitHub":"https://github.com/linuxserver/docker-swag#application-setup","ReadMe":"https://github.com/linuxserver/docker-swag#readme","trends":[0.247,0.166,0.176,0.268,0.269,0.241,0.315],"Network":"bridge","Project":"https://linuxserver.io","Support":"https://github.com/linuxserver/docker-swag/issues/new/choose","Overview":"SWAG - Secure Web Application Gateway (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes (Let's Encrypt and ZeroSSL). It also contains fail2ban for intrusion prevention.","Registry":"https://github.com/orgs/linuxserver/packages/container/package/swag","trending":0.315,"FirstSeen":1599746885,"downloads":91663454,"LastUpdate":1792843019,"Privileged":"false","Repository":"lscr.io/linuxserver/swag","trendsDate":[1778029934,1780632178,1783224218,1785926957,1788523586,1791198847,1793794501],"ExtraParams":"--cap-add=NET_ADMIN","TemplateURL":"https://raw.githubusercontent.com/linuxserver/templates/main/unraid/swag.xml","topTrending":0.068,"CategoryList":["Network-Web","Security"],"TemplatePath":"/tmp/GitHub/AppFeed/unraid/swag.xml","downloadtrend":[90356161,90506336,90666061,90909884,91155243,91375161,91663454],"topPerforming":0.315,"LastUpdateScan":1793794501,"RecommendedRaw":"11/1/2025","RecommendedWho":"SpaceInvader One","RecommendedDate":1761969600,"ChangeLogPresent":"1","categories.lvl0":["Network","Security"],"categories.lvl1":["Network > Web"],"objectID":"app_3356391c8196a0da","statsPath":"https://assets.ca.unraid.net/feed/repositories/lscr.io___linuxserver___swag","appType":"docker","InstallTemplateURL":"https://raw.githubusercontent.com/linuxserver/templates/main/unraid/swag.xml","beta":false,"deprecated":false,"recommended":true,"isOfficial":false,"overviewPreview":"SWAG - Secure Web Application Gateway (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes (Let's Encrypt and ZeroSSL).","categoryPaths":["Network","Network > Web","Security"],"deepestCategories":["Network > Web","Security"],"deepestCategoryLevel":1,"updatedAt":1792843019,"canRenderGraphs":true,"trendsDateFormatted":["May 6","Jun 5","Jul 5","Aug 5","Sep 4","Oct 5","Nov 4"],"trendsAligned":[0.247,0.166,0.176,0.268,0.269,0.241,0.315],"downloadtrendAligned":[90356161,90506336,90666061,90909884,91155243,91375161,91663454],"monthlyDownloads":[223180,150175,159725,243823,245359,219918,288293],"popularityScore":25.15,"isTrending":true,"chartData":{"canRender":true,"totalDownloadsChart":{"data":[90356161,90506336,90666061,90909884,91155243,91375161,91663454],"labels":["May 6","Jun 5","Jul 5","Aug 5","Sep 4","Oct 5","Nov 4"]}}}}