SelfhostedPro / selfhosted_templates

Portainer templates for selfhosted services
GNU General Public License v3.0
1.23k stars 238 forks source link

[APP REQUEST]: SWAG #205

Closed Qballjos closed 1 year ago

Qballjos commented 3 years ago

Dockerhub Link:

https://hub.docker.com/r/linuxserver/swag

Description

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. It also contains fail2ban for intrusion prevention.

Separate Database?

No

Fill this out as best as you can. Documentation about these can be found here:

https://docs.linuxserver.io/general/swag/

{
    "type": 1,
    "title": "SWAG",
    "name": "swag",
    "description": "This container sets up an Nginx webserver and reverse proxy with php support and a built-in letsencrypt client that automates free SSL server certificate generation and renewal processes. It also contains fail2ban for intrusion prevention.\r\n  \r\n  Before running this container, make sure that the url and subdomains are properly forwarded to this container's host.\r\n  \r\n  - Port 443 on the internet side of the router should be forwarded to this container's port 443.\r\n  - 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\r\n  - The container detects changes to url and subdomains, revokes existing certs and generates new ones during start. \r\n  - It also detects changes to the DHLEVEL parameter and replaces the dhparams file.\r\n  \r\n  - 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>",
    "logo": "https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/master/Images/letsencrypt.png",
    "image": "linuxserver/swag:latest",
    "categories": [
      "Tools",
      "Web"
    ],
    "platform": "linux",
    "restart_policy": "unless-stopped",
    "ports": [
      "80/tcp",
      "443/tcp"
    ],
    "volumes": [
      {
        "container": "/config",
        "bind": "/portainer/Files/AppData/Config/swag"
      }
    ],
    "env": [
      {
        "name": "EMAIL",
        "label": "EMAIL",
        "set": "-Xms256m -Xmx512m"
      },
      {
        "name": "URL",
        "label": "URL",
        "set": "-Xms256m -Xmx512m"
      },
      {
        "name": "SUBDOMAINS",
        "label": "SUBDOMAINS",
        "set": "www,"
      },
      {
        "name": "ONLY_SUBDOMAINS",
        "label": "ONLY_SUBDOMAINS",
        "set": "false"
      },
      {
        "name": "DHLEVEL",
        "label": "DHLEVEL",
        "set": "2048"
      },
      {
        "name": "PUID",
        "label": "PUID",
        "default": "1000"
      },
      {
        "name": "PGID",
        "label": "PGID",
        "default": "100"
      },
      {
        "name": "VALIDATION",
        "label": "VALIDATION",
        "set": "http"
      },
      {
        "name": "DNSPLUGIN",
        "label": "DNSPLUGIN",
        "set": "http"
      }
    ]
  },
pingywon commented 3 years ago

SWAG is in both the MASTER and the yacht-ARM templates.