SWAG

Set up an Nginx webserver and reverse proxy with automatic SSL certificate renewal. Protect your services with built-in Fail2ban for intrusion prevention.

SWAG (Secure Web Application Gateway) is a comprehensive Docker container that combines a powerful Nginx webserver and reverse proxy with essential security tools. It is designed to simplify the process of securely exposing your web applications to the internet. The package includes a built-in Certbot client that automates the generation and renewal of free SSL certificates from providers like Let's Encrypt and ZeroSSL, ensuring your connections are always encrypted.

For enhanced security, SWAG comes with Fail2ban for intrusion prevention, which actively monitors logs and blocks suspicious IP addresses. This container is an ideal all-in-one solution for managing and securing your self-hosted services.

Key features include:

  • Automated SSL: Effortlessly obtain and renew SSL certificates with Certbot.
  • Reverse Proxy: Easily manage access to multiple services with pre-configured proxy templates for popular apps.
  • Built-in Security: Protect your applications from brute-force attacks with integrated Fail2ban.
  • DNS Validation: Supports numerous DNS plugins for obtaining wildcard certificates.
  • PHP Support: Includes PHP for serving dynamic web pages.
  • Modern Protocols: Offers support for QUIC (HTTP/3) for faster connections.

Directory Structure

swag
config
.env
docker-compose.yml

docker-compose.yml

services:
  swag:
    image: lscr.io/linuxserver/swag:latest
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - URL=${DOMAIN_NAME}
      - VALIDATION=http
      - SUBDOMAINS=www,
      - CERTPROVIDER=letsencrypt
      - EMAIL=${LETSENCRYPT_EMAIL}
    volumes:
      - ./config:/config
    ports:
      - 443:443
      - 80:80
    restart: unless-stopped

.env

DOMAIN_NAME=yourdomain.com
LETSENCRYPT_EMAIL=your_email@example.com
Categories:

Share:

Ad
Favicon

 

  
 

Similar to SWAG

Favicon

 

  
  
Favicon

 

  
  
Favicon