mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
Add Caddy Server Support Alongside Nginx (#600)
* added enum
* add config for caddy
* add svg icon
* add caddy service class
* wip
* install caddy
* create base Caddyfile with common snippets
* Create a systemd service to run Caddy in the background.
* create uninstall file
* wip
* create path
* create vhost
* get vhost
* delete site
* add php version change file
* add custom ssl
* create redirect file
* add vhost for caddy site & load balancer
* update svg
* fix caddy icon
* fix style
* add systemctl reload method
* Reload systemd after modifying the Caddy service file.
* add caddy
* added tests
* format with pint
* prevent multiple web server installations
* added error log & access log
(cherry picked from commit 2318e1b1df
)
This commit is contained in:
committed by
Saeed Vaziry
parent
61506ff70e
commit
984c1f3a8e
20
resources/views/ssh/services/webserver/caddy/install-caddy.blade.php
Executable file
20
resources/views/ssh/services/webserver/caddy/install-caddy.blade.php
Executable file
@ -0,0 +1,20 @@
|
||||
# Add Caddy's GPG key and repository
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | \
|
||||
|
||||
sudo tee /etc/apt/sources.list.d/caddy-stable.list
|
||||
|
||||
# Install required packages
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
debian-keyring debian-archive-keyring apt-transport-https curl
|
||||
|
||||
# Update package list
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
||||
|
||||
# Install Caddy
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install caddy -y
|
||||
|
||||
sudo mkdir /etc/caddy/sites-available
|
||||
|
||||
sudo mkdir /etc/caddy/sites-enabled
|
Reference in New Issue
Block a user