Sign in

swag

5.10.0-ls16

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.

docker pull ghcr.io/linuxserver-playground/swag:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
Top url you have control over (e.g. example.com if you own it, or customsubdomain.example.com if dynamic dns).
Certbot validation method to use, options are http or dns (dns method also requires DNSPLUGIN variable set).
Persistent config files
HTTPS port
  • cap_add: NET_ADMIN Required for fail2Ban to be able to modify iptables rules.
Optional settings15

Tick what you need; it is added to every output with its value.

Mods

13 for swag, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  swag:
    image: ghcr.io/linuxserver-playground/swag:latest
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - URL=example.com
      - VALIDATION=http
    volumes:
      - /path/to/swag/config:/config
    ports:
      - 443:443
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stable5.10.0-ls16amd64 · arm64–

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/swag:5.10.0-ls16

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine-nginx:3.24
Upstream version
5.10.0
amd64 compressed
156 MB · 11 layers
arm64 compressed
156 MB · 11 layers
amd64 packages
404 · Alpine Linux v3.24
arm64 packages
404 · Alpine Linux v3.24
Tests
not run
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

swag on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
5.10.0
? unknown––

Application setup#

Validation and initial setup

  • Before running this container, make sure that the url and subdomains are properly forwarded to this container’s host, and that port 443 (and/or 80) is not being used by another service on the host (NAS gui, another webserver, etc.).
  • If you need a dynamic dns provider, you can use the free provider duckdns.org where the URL will be yoursubdomain.duckdns.org and the SUBDOMAINS can be www,ftp,cloud with http validation, or wildcard with dns validation. You can use our duckdns image to update your IP on duckdns.org.
  • For http validation, port 80 on the internet side of the router should be forwarded to this container’s port 80
  • For dns validation, make sure to enter your credentials into the corresponding ini (or json for some plugins) file under /config/dns-conf
    • Cloudflare provides free accounts for managing dns and is very easy to use with this image. Make sure that it is set up for “dns only” instead of “dns + proxy”
    • Google dns plugin is meant to be used with “Google Cloud DNS”, a paid enterprise product, and not for “Google Domains DNS”
    • DuckDNS only supports two types of DNS validated certificates (not both at the same time):
      1. Certs that only cover your main subdomain (ie. yoursubdomain.duckdns.org, leave the SUBDOMAINS variable empty)
      2. Certs that cover sub-subdomains of your main subdomain (ie. *.yoursubdomain.duckdns.org, set the SUBDOMAINS variable to wildcard)
  • --cap-add=NET_ADMIN is required for fail2ban to modify iptables
  • After setup, navigate to https://example.com to access the default homepage (http access through port 80 is disabled by default, you can enable it by editing the default site config at /config/nginx/site-confs/default.conf).
  • Certs are checked twice daily using ACME Renewal Information (ARI) to determine the optimal renewal window. If your cert is about to expire, check the logs under /config/log/letsencrypt to see why the renewals have been failing.

Certbot Plugins

SWAG includes many Certbot plugins out of the box, but not all plugins can be included. If you need a plugin that is not included, the quickest way to have the plugin available is to use our Universal Package Install Docker Mod.

Set the following environment variables on your container:

DOCKER_MODS=linuxserver/mods:universal-package-install
INSTALL_PIP_PACKAGES=certbot-dns-<plugin>

Set the required credentials (usually found in the plugin documentation) in /config/dns-conf/<plugin>.ini. It is recommended to attempt obtaining a certificate with STAGING=true first to make sure the plugin is working as expected.

Security and password protection

  • The container detects changes to url and subdomains, revokes existing certs and generates new ones during start.
  • Per RFC7919, the container is shipping ffdhe4096 as the dhparams.pem.
  • If you’d like to password protect your sites, you can use htpasswd. Run the following command on your host to generate the htpasswd file docker exec -it swag htpasswd -c /config/nginx/.htpasswd <username>
  • You can add multiple user:pass to .htpasswd. For the first user, use the above command, for others, use the above command without the -c flag, as it will force deletion of the existing .htpasswd and creation of a new one
  • You can also use ldap auth for security and access control. A sample, user configurable ldap.conf is provided, and it requires the separate image linuxserver/ldap-auth to communicate with an ldap server.

Site config and reverse proxy

  • The default site config resides at /config/nginx/site-confs/default.conf. Feel free to modify this file, and you can add other conf files to this directory. However, if you delete the default file, a new default will be created on container start.
  • Preset reverse proxy config files are added for popular apps. See the README.md file under /config/nginx/proxy-confs for instructions on how to enable them. The preset confs reside in and get imported from this repo.
  • If you wish to hide your site from search engine crawlers, you may find it useful to add this configuration line to your site config, within the server block, above the line where ssl.conf is included add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; This will ask Google et al not to index and list your site. Be careful with this, as you will eventually be de-listed if you leave this line in on a site you wish to be present on search engines
  • If you wish to redirect http to https, you must expose port 80

Using certs in other containers

  • This container includes auto-generated pfx and private-fullchain-bundle pem certs that are needed by other apps like Emby and Znc.
    • To use these certs in other containers, do either of the following:
    1. (Easier) Mount the container’s config folder in other containers (ie. -v /path-to-swag-config:/swag-ssl) and in the other containers, use the cert location /swag-ssl/keys/letsencrypt/
    2. (More secure) Mount the SWAG folder etc that resides under /config in other containers (ie. -v /path-to-swag-config/etc:/swag-ssl) and in the other containers, use the cert location /swag-ssl/letsencrypt/live/<your.domain.url>/ (This is more secure because the first method shares the entire SWAG config folder with other containers, including the www files, whereas the second method only shares the ssl certs)
    • These certs include:
    1. cert.pem, chain.pem, fullchain.pem and privkey.pem, which are generated by Certbot and used by nginx and various other apps
    2. privkey.pfx, a format supported by Microsoft and commonly used by dotnet apps such as Emby Server (no password)
    3. priv-fullchain-bundle.pem, a pem cert that bundles the private key and the fullchain, used by apps like ZNC

Using fail2ban

  • This container includes fail2ban set up with 5 jails by default:
    1. nginx-http-auth
    2. nginx-badbots
    3. nginx-botsearch
    4. nginx-deny
    5. nginx-unauthorized
  • To enable or disable other jails, modify the file /config/fail2ban/jail.local
  • To modify filters and actions, instead of editing the .conf files, create .local files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. .local files will append whatever’s in the .conf files (ie. nginx-http-auth.conf –> nginx-http-auth.local)
  • You can check which jails are active via docker exec -it swag fail2ban-client status
  • You can check the status of a specific jail via docker exec -it swag fail2ban-client status <jail name>
  • You can unban an IP via docker exec -it swag fail2ban-client set <jail name> unbanip <IP>
  • A list of commands for fail2ban-client can be found here

Updating configs

  • This container creates a number of configs for nginx, proxy samples, etc.
  • Config updates are noted in the changelog but not automatically applied to your files.
  • If you have modified a file with noted changes in the changelog:
    1. Keep your existing configs as is (not broken, don’t fix)
    2. Review our repository commits and apply the new changes yourself
    3. Delete the modified config file with listed updates, restart the container, reapply your changes
  • If you have NOT modified a file with noted changes in the changelog:
    1. Delete the config file with listed updates, restart the container
  • Proxy sample updates are not listed in the changelog. See the changes here: https://github.com/linuxserver/reverse-proxy-confs/commits/master
  • Proxy sample files WILL be updated, however your renamed (enabled) proxy files will not.
  • You can check the new sample and adjust your active config as needed.

QUIC support

This image supports QUIC (also known as HTTP/3) but it must be explicitly enabled in each proxy conf, and the default conf, because if the listener is enabled and you don’t expose 443/UDP, it can break connections with some browsers.

To enable QUIC, expose 443/UDP to your clients, then uncomment both QUIC listeners in all of your active proxy confs, as well as the default conf, and restart the container.

You should also uncomment the Alt-Svc header in your ssl.conf so that browsers are aware that you offer QUIC connectivity.

It is recommended to increase the UDP send/recieve buffer on the host by setting the net.core.rmem_max and net.core.wmem_max sysctls. Suggested values are 4-16Mb (4194304-16777216 bytes). For persistence between reboots use /etc/sysctl.d/.

Migration from the old linuxserver/letsencrypt image

Please follow the instructions on this blog post.

Parameters#

Ports#
PortFunctionRequired
443:443HTTPS portrequired
80:80HTTP port (required for HTTP validation and HTTP -> HTTPS redirect)optional
443:443/udpQUIC (HTTP/3) port. Must be enabled in the default and proxy confs.optional
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
URL=example.comTop url you have control over (e.g. example.com if you own it, or customsubdomain.example.com if dynamic dns).required
VALIDATION=httpCertbot validation method to use, options are http or dns (dns method also requires DNSPLUGIN variable set).required
SUBDOMAINS=www,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)optional
CERTPROVIDER=Optionally define the cert provider. Set to zerossl for ZeroSSL certs (requires existing ZeroSSL account (opens in a new tab) and the e-mail address entered in EMAIL env var). Otherwise defaults to Let's Encrypt.optional
CERT_PROFILE=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/ optional
DNSPLUGIN=cloudflareRequired 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.optional
PROPAGATION=Optionally override (in seconds) the default propagation time for the dns plugins.optional
EMAIL=Optional e-mail address used for cert expiration notifications (Required for ZeroSSL).optional
ONLY_SUBDOMAINS=falseIf 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 trueoptional
EXTRA_DOMAINS=Additional fully qualified domain names (comma separated, no spaces) ie. example.net,subdomain.example.net,*.example.orgoptional
STAGING=falseSet 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.optional
DISABLE_F2B=Set to true to disable the Fail2ban service in the container, if you're already running it elsewhere or using a different IPS.optional
SWAG_AUTORELOAD=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 (opens in a new tab).optional
SWAG_AUTORELOAD_WATCHLIST=A pipe (opens in a new tab)-separated list of additional folders for auto reload to watch in addition to /config/nginxoptional
Volumes#
PathFunctionRequired
/configPersistent config filesrequired
Other settings#
SettingFunctionRequired
cap_add: NET_ADMINRequired for fail2Ban to be able to modify iptables rules.required

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Caveats

  • /tmp must be mounted to tmpfs
  • fail2ban will not be available

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull swag
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d swag
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/swag:latest
  • Stop the running container:

    docker stop swag
  • Delete the container:

    docker rm swag
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-swag.git
cd docker-swag
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/swag:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 11 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
5.10.0-ls16master · 59f93e6bweekly package checkbasesuccess156 MB amd64156 MB arm64
5.10.0-ls15master · 9e5c5bbfweekly package checkbasesuccess156 MB amd64156 MB arm64
5.10.0-ls14master · f99c67b5weekly package checkbasesuccess158 MB amd64159 MB arm64
5.10.0-ls13master · 2c821b44weekly package checkpackagessuccess155 MB amd64155 MB arm64
5.10.0-ls12master · 2fa8d60aweekly package checkbasesuccess155 MB amd64155 MB arm64
Older releases11Release, run record and run on GitHub
Older releases of swag, without a page on this site
TagBuiltLinks
5.10.0-ls11masterRelease 5.10.0-ls11 on GitHub (opens in a new tab)run.json of 5.10.0-ls11Run that built 5.10.0-ls11, on GitHub (opens in a new tab)
5.9.0-ls10masterRelease 5.9.0-ls10 on GitHub (opens in a new tab)run.json of 5.9.0-ls10Run that built 5.9.0-ls10, on GitHub (opens in a new tab)
5.9.0-ls9masterRelease 5.9.0-ls9 on GitHub (opens in a new tab)run.json of 5.9.0-ls9Run that built 5.9.0-ls9, on GitHub (opens in a new tab)
5.9.0-ls8masterRelease 5.9.0-ls8 on GitHub (opens in a new tab)run.json of 5.9.0-ls8Run that built 5.9.0-ls8, on GitHub (opens in a new tab)
5.9.0-ls7masterRelease 5.9.0-ls7 on GitHub (opens in a new tab)run.json of 5.9.0-ls7Run that built 5.9.0-ls7, on GitHub (opens in a new tab)
5.8.0-ls6masterRelease 5.8.0-ls6 on GitHub (opens in a new tab)run.json of 5.8.0-ls6Run that built 5.8.0-ls6, on GitHub (opens in a new tab)
5.8.0-ls5masterRelease 5.8.0-ls5 on GitHub (opens in a new tab)run.json of 5.8.0-ls5Run that built 5.8.0-ls5, on GitHub (opens in a new tab)
5.8.0-ls4masterRelease 5.8.0-ls4 on GitHub (opens in a new tab)run.json of 5.8.0-ls4Run that built 5.8.0-ls4, on GitHub (opens in a new tab)
5.8.0-ls3masterRelease 5.8.0-ls3 on GitHub (opens in a new tab)run.json of 5.8.0-ls3Run that built 5.8.0-ls3, on GitHub (opens in a new tab)
5.8.0-ls2masterRelease 5.8.0-ls2 on GitHub (opens in a new tab)run.json of 5.8.0-ls2Run that built 5.8.0-ls2, on GitHub (opens in a new tab)
5.8.0-ls1masterRelease 5.8.0-ls1 on GitHub (opens in a new tab)run.json of 5.8.0-ls1Run that built 5.8.0-ls1, on GitHub (opens in a new tab)

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for swag
  • Auto-proxy

    This mod gives SWAG the ability to auto-detect running containers via labels and automatically enable reverse proxy for them.

    ghcr.io/linuxserver-playground/mods:swag-auto-proxy
  • Auto Uptime Kuma

    This mod gives SWAG the ability to automatically add Uptime Kuma "Monitors" for the running containers. Ultimately it will allow you with a very low effort to setup notifications whenever any of your services goes down etc.

    ghcr.io/linuxserver-playground/mods:swag-auto-uptime-kuma
  • Cloudflare real IP

    Writes Cloudflare's edge IP ranges to /config/nginx/cf_real-ip.conf as set_real_ip_from directives at startup, so nginx sees the visitor's real IP behind Cloudflare.

    ghcr.io/linuxserver-playground/mods:swag-cloudflare-real-ip
  • CrowdSec

    Make sure that the line below, under virtual hosts, is in your nginx.conf, otherwise crowdsec-bouncer will not work. More information here https://info.linuxserver.io/issues/2022-08-20-nginx-base/

    ghcr.io/linuxserver-playground/mods:swag-crowdsec
  • Dashboard

    This mod adds a dashboard to SWAG powered by Goaccess.

    ghcr.io/linuxserver-playground/mods:swag-dashboard
  • DB-IP country database

    Downloads the free DB-IP country lite GeoIP2 database to /config/geoip2db and refreshes it weekly, with an nginx geoip2 config for allowing or blocking countries and continents.

    ghcr.io/linuxserver-playground/mods:swag-dbip
  • Ffmpeg

    This mod adds ffmpeg to swag, to be installed/updated during container start.

    ghcr.io/linuxserver-playground/mods:swag-ffmpeg
  • Geoip2Influx

    This mod adds a python script that sends geo location metrics from the nginx access log to InfluxDB

    ghcr.io/linuxserver-playground/mods:swag-geoip2influx
  • Imagemagick

    This mod adds imagemagick and the php imagick module to nginx/swag, to be installed/updated during container start.

    ghcr.io/linuxserver-playground/mods:swag-imagemagick
  • Ioncube Loader

    This mod adds Ioncube loader to SWAG/nginx, to be installed/updated during container start.

    ghcr.io/linuxserver-playground/mods:swag-ioncube
  • IPINFO

    This mod downloads the ipinfolite.mmdb database under /config/geoip2db, the database is updated daily.

    ghcr.io/linuxserver-playground/mods:swag-ipinfo
  • Maxmind

    This mod adds the maxmind database to nginx using the license key defined in the environment variable.

    ghcr.io/linuxserver-playground/mods:swag-maxmind
  • On-demand

    This mod gives SWAG the ability to start containers on-demand when accessed through SWAG and stop them after a period of inactivity. It takes a few seconds for containers to start on-demand, you'll need to refresh the tab or add a loading page as detailed below.

    ghcr.io/linuxserver-playground/mods:swag-ondemand

Plus 13 other universal mods that work with every image.

Changelog#

  1. Existing users should update: (opens in a new tab) proxy.conf, authelia-server.conf, authentik-server.conf, tinyauth-server.conf - Update Nginx configuration to replace $http_host with $host$is_request_port$request_port for better compatibility.

  2. Use new X-Tinyauth-Location header in Tinyauth locations and remove duplicate auth module headers.

  3. Rebase to Alpine 3.24 with PHP 8.5.

  4. Add support for Let's Encrypt cert profiles. Run certbot twice daily with a random delay.

  5. Add support for mijn.host dns validation.

  6. Remove obsolete old cert check logic.

  7. Reorder init to fix proxy conf version checks.

  8. Add support for hetzner-cloud dns validation.

93 earlier entries
  1. Switch default Gandi credentials from API Key to Token, allow DNS propagation time for Azure DNS plugin.
  2. Rebase to Alpine 3.22 with PHP 8.4. Add QUIC support. Drop PHP bindings for mcrypt as it is no longer maintained.
  3. Disable Certbot's built in log rotation.
  4. Add Auto Reload (opens in a new tab) functionality to SWAG.
  5. Rebase to Alpine 3.21.
  6. Fix naming issue with Dynu plugin. If you are using Dynu, please make sure your credentials are set in /config/dns-conf/dynu.ini and your DNSPLUGIN variable is set to dynu (not dynudns).
  7. Fix zerossl cert revocation.
  8. Rebase to Alpine 3.20. Remove deprecated Google Domains certbot plugin. Existing users should update their nginx confs to avoid http2 deprecation warnings.
  9. Fall back to iptables-legacy if iptables doesn't work.
  10. Fix perms on the generated priv-fullchain-bundle.pem.
  11. Existing users should update: (opens in a new tab) authelia-location.conf, authelia-server.conf - Update Authelia conf samples with support for 4.38.
  12. Restore support for DynuDNS using certbot-dns-dynudns.
  13. Existing users should update: (opens in a new tab) site-confs/default.conf - Cleanup default site conf.
  14. Remove stream.conf inside the container to allow users to include their own block in nginx.conf.
  15. Rebase to Alpine 3.19 with php 8.3, add root periodic crontabs for logrotate.
  16. Add GleSYS DNS plugin.
  17. Deprecate certbot-dns-dynu to resolve dependency conflicts with other plugins.
  18. Existing users should update: (opens in a new tab) site-confs/default.conf - Fix index.php being downloaded on 404.
  19. Run certbot as root to allow fix http validation.
  20. Fix "unrecognized arguments" issue in DirectAdmin DNS plugin.
  21. Add Namecheap DNS plugin.
  22. Add FreeDNS plugin. Detect certbot DNS authenticators using CLI.
  23. Add Bunny DNS Configuration.
  24. Added support for dreamhost validation.
  25. Rebase to Alpine 3.18, deprecate armhf.
  26. Existing users should update: (opens in a new tab) authelia-location.conf, authelia-server.conf, authentik-location.conf, authentik-server.conf - Simplify auth configs and fix Set-Cookie header bug.
  27. Existing users should update: (opens in a new tab) nginx.conf, authelia-location.conf, authentik-location.conf, and site-confs/default.conf - Move ssl.conf include to default.conf. Remove Authorization headers in authelia. Sort proxy_set_header in authelia and authentik.
  28. Fix renewal post hook.
  29. Cleanup unused csr and keys folders. See certbot 2.3.0 release notes (opens in a new tab).
  30. Add Google Domains DNS support, google-domains.
  31. Set permissions on crontabs during init.
  32. Existing users should update: (opens in a new tab) proxy.conf, authelia-location.conf and authelia-server.conf - Add Authentik configs, update Authelia configs.
  33. Add porkbun support back in.
  34. Unpin certbot version (allow certbot 2.x). !!BREAKING CHANGE!! We are temporarily removing the certbot porkbun plugin until a new version is released that is compatible with certbot 2.x.
  35. Rebase to alpine 3.17 with php8.1.
  36. Remove nchan module because it keeps causing crashes.
  37. Revamp certbot init.
  38. Remove defunct cloudxns plugin.
  39. Pin acme to the same version as certbot.
  40. Pin certbot to 1.32.0 until plugin compatibility improves.
  41. Update acmedns plugin handling.
  42. Switch to certbot-dns-duckdns. Update cpanel and gandi dns plugin handling. Minor adjustments to init logic.
  43. Use certbot file hooks instead of command line hooks
  44. Add godaddy and porkbun dns plugins.
  45. Add default_server back to default site conf's https listen.
  46. Added support for DO DNS validation.
  47. Added certbot-dns-acmedns for DNS01 validation.
  48. Existing users should update: (opens in a new tab) nginx.conf - Rebasing to alpine 3.15 with php8. Restructure nginx configs (see changes announcement (opens in a new tab)).
  49. Added support for Dynu DNS validation.
  50. Added support for Azure DNS validation.
  51. Added certbot-dns-loopia for DNS01 validation.
  52. Added support for standalone DNS validation.
  53. created a logfile for fail2ban nginx-unauthorized in /etc/cont-init.d/50-config
  54. Added a fail2ban jail for nginx unauthorized
  55. Fixed issue with iptables not working as expected
  56. Move maxmind to a new mod (opens in a new tab)
  57. Added support for Infomaniak DNS for certificate generation.
  58. Added support for dnspod validation.
  59. Added support for deSEC DNS for wildcard certificate generation.
  60. Existing users should update: (opens in a new tab) proxy.conf - Mitigate <https://httpoxy.org/> vulnerabilities. Ref: <https://www.nginx.com/blog/mitigating-the-httpoxy-vulnerability-with-nginx#Defeating-the-Attack-using-NGINX-and-NGINX-Plus>
  61. Fix Hurricane Electric (HE) DNS validation.
  62. Fix deprecated LE root cert check to fix failures when using STAGING=true, and failures in revoking.
  63. Added support for Hurricane Electric (HE) DNS validation. Added lxml build deps.
  64. Check if the cert uses the old LE root cert, revoke and regenerate if necessary. Here's more info (opens in a new tab) on LE root cert expiration
  65. Add an optional header to opt out of Google FLoC in ssl.conf.
  66. Mark SUBDOMAINS var as optional.
  67. Add support for ionos dns validation.
  68. Fix libmaxminddb issue due to upstream change.
  69. Rebase to alpine 3.14.
  70. Update default nginx conf folder.
  71. Existing users should update: (opens in a new tab) authelia-server.conf - Use resolver.conf and patch for CVE-2021-32637.
  72. Modify resolver.conf generation to detect and ignore ipv6.
  73. Existing users should update: (opens in a new tab) nginx.conf, ssl.conf, proxy.conf, and the default site-conf - Rework nginx.conf to be inline with alpine upstream and relocate lines from other files. Use linuxserver.io wheel index for pip packages. Switch to using ffdhe4096 (opens in a new tab) for dhparams.pem per RFC7919 (opens in a new tab). Added worker_processes.conf, which sets the number of nginx workers, and resolver.conf, which sets the dns resolver. Both conf files are auto-generated only on first start and can be user modified later.
  74. Existing users should update: (opens in a new tab) authelia-server.conf and authelia-location.conf - Add remote name/email headers and pass http method.
  75. Add php7-gmp and php7-pecl-mailparse.
  76. Add support for vultr dns validation.
  77. Add support for directadmin dns validation.
  78. Clean up rust/cargo cache, which ballooned the image size in the last couple of builds.
  79. Fix aliyun, domeneshop, inwx and transip dns confs for existing users.
  80. Rebasing to alpine 3.13. Add nginx mods brotli and dav-ext. Remove nginx mods lua and lua-upstream (due to regression over the last couple of years).
  81. Add support for hetzner dns validation.
  82. Add check for ZeroSSL EAB retrieval.
  83. Add support for getting certs from ZeroSSL (opens in a new tab) via optional CERTPROVIDER env var. Update aliyun, domeneshop, inwx and transip dns plugins with the new plugin names. Hide donoteditthisfile.conf because users were editing it despite its name. Suppress harmless error when no proxy confs are enabled.
  84. Existing users should update: (opens in a new tab) /config/nginx/site-confs/default.conf - Add helper pages to aid troubleshooting
  85. Add support for njalla dns validation
  86. Check for template/conf updates and notify in the log. Add support for gehirn and sakuracloud dns validation.
  87. Add support for netcup dns validation
  88. Existing users should update: (opens in a new tab) ssl.conf - Add frame-ancestors to Content-Security-Policy.
  89. Existing users should update: (opens in a new tab) nginx.conf, proxy.conf, and ssl.conf - Minor cleanups and reordering.
  90. Existing users should update: (opens in a new tab) nginx.conf - Added geoip2 configs. Added MAXMINDDB_LICENSE_KEY variable to readme.
  91. Add php7-xsl.
  92. Existing users should update: (opens in a new tab) nginx.conf, proxy.conf, and various proxy samples - Global websockets across all configs.
  93. Initial release.

Support#

Questions about running swag? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it swag /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f swag
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' swag
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/swag:latest

Community project

Improve swag

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the swag image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the swag image, test it and draft the PR.
  • Make a mod for swag that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Writing

Posts about swag

Related

Browse all

nginx

1.30.8-r0-ls14

Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server.

0 GitHub starsalpine-nginxarm64