Caddy
Caddy is The Ultimate Server with Automatic HTTPS, used for HTTP Server HTML . Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
Prepare
When referring to this document to use Caddy, please read and ensure the following points:
-
Login to Websoft9 Console and find or install Caddy:
- Go to My Apps listing applications
- Go to App Store installing target application
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the apache2 open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Use Caddy in the Websoft9 for the following:
- Deploy a static website
- Running the reverse proxy service for application
Deploy a static website
-
When you have completed the installation of Caddy in the Websoft9 Console, get the applicaiton's overview and access information from My Apps
-
Refer to Deploying Applications Based on Program Environment to deploy a static website.
Reverse proxy applications
Follow the steps below to learn how to configure Caddy's reverse proxy:
-
Select Websoft9 Console > App Store, and install the applications Netdata and Caddy
-
Select My Apps > Caddy > Compose > Go to Edit Repository, modify the src/Caddyfile as follows:
:80 {
reverse_proxy http://netdata_h31py:19999
} -
Restart the Caddy application. Access the Caddy URL, and you will see the Netdata page
In the Websoft9, the Netdata access is routed as follows: User browser> Websoft9 Gateway > Caddy > Netdata container
Configuration options
- Application root directory in the container: /srv
- Caddy container port:
80
- API
- CLI:
caddy help
- Configuration template
- Caddy configuration file in the container(mounted bind): /etc/caddy/Caddyfile