In this tutorial, we will guide you through the process of installing SWAG (Secure Web Application Gateway) on Manjaro. SWAG is an open-source web server that enables you to secure your web applications using SSL/TLS encryption, reverse proxy, and other advanced security features.
Before we begin, make sure you have the following prerequisites:
The first step is to clone the SWAG repository from Github. To do so, open your terminal and run the following command:
git clone https://github.com/linuxserver/docker-swag
After cloning the repository, you need to configure SWAG according to your requirements. You can do so by editing the docker-compose.yml
file located in the docker-swag
directory. For example, to add a new subdomain, edit the domains
environment variable as shown below:
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- URL=<your-domain.com>
- SUBDOMAINS=<sub-domain1>,<sub-domain2>
- EMAIL=<your-email@gmail.com> #optional
- VALIDATION=http
- DNSPLUGIN=cloudflare #optional
You can also change the ports, volumes, and other settings according to your needs.
After configuring SWAG, save the changes and start the container by running the following command:
cd docker-swag && docker-compose up -d
This will start the SWAG container in the background, and you should now see the container ID printed to your terminal.
Finally, verify that SWAG is working correctly by opening your web browser and visiting the URL you defined in the docker-compose.yml
file. If everything is working correctly, you should see your web page securely served over HTTPS.
Congratulations! You’ve successfully installed and configured SWAG on Manjaro. You can now use it to secure your web applications and protect them from malicious attacks.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!