In this tutorial, we will guide you through the steps you need to follow to install SWAG (Secure Web Application Gateway) on your Windows 10 computer.
Before we begin, make sure you have the following software installed on your computer:
Open your command prompt or terminal and navigate to the directory where you want to clone the SWAG repository. Then, run the following command:
git clone https://github.com/linuxserver/docker-swag.git
This will clone the SWAG repository onto your local machine.
Navigate to the docker-compose.yml
file and open it in a text editor. You will need to edit the environmental variables to customize your SWAG installation.
Update the following environmental variables:
URL
: This is the domain name you want to use for your website.SUBDOMAINS
: This is a comma-separated list of subdomains you want to use for your website. For example, "www,test,api".CERT_VALIDATION
: This determines whether to use Let's Encrypt or your own SSL certificate. Set it to "false" if you want to use your own certificate.Once you have edited the environmental variables, navigate to the directory where you cloned the SWAG repository and run the following command:
docker-compose up -d
This will start the SWAG container and expose it on port 443. You should now be able to access your website at https://your-domain-name.
Congratulations! You have successfully installed SWAG (Secure Web Application Gateway) on your Windows 10 computer. By following these steps, you can quickly and easily set up a secure web server for your website.
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!