mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Updated Caddy Webserver Config (markdown)
parent
4accb57753
commit
7502d4ef3a
1 changed files with 47 additions and 0 deletions
|
|
@ -1,3 +1,50 @@
|
|||
## Caddy 2
|
||||
|
||||
Install Caddy 2 stable release: https://caddyserver.com/docs/install#debian-ubuntu-raspbian
|
||||
|
||||
Like this:
|
||||
```
|
||||
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
||||
|
||||
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
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt -y install caddy
|
||||
```
|
||||
Edit Caddyfile:
|
||||
|
||||
```
|
||||
sudo nano /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
# Redirecting http to https
|
||||
|
||||
(redirect) {
|
||||
@http {
|
||||
protocol http
|
||||
}
|
||||
redir @http https://{host}{uri}
|
||||
}
|
||||
|
||||
boards.example.com {
|
||||
tls {
|
||||
load /var/snap/wekan/common/certs
|
||||
alpn http/1.1
|
||||
}
|
||||
|
||||
reverse_proxy 127.0.0.1:3025
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
***
|
||||
|
||||
[Caddy OAuth2 with Let's Encrypt SSL example](OAuth2)
|
||||
|
||||
***
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue