mirror of
https://github.com/akpall/akpella.git
synced 2026-02-21 00:26:59 +00:00
fixup! config.yaml: add caddy
This commit is contained in:
22
config.yaml
22
config.yaml
@@ -9,10 +9,14 @@ passwd:
|
|||||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOpw3cIAdtWOYUkb6UOAIcLuRzItoo4oZMzr/hzZYq4E openpgp:0xFAAA0172
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOpw3cIAdtWOYUkb6UOAIcLuRzItoo4oZMzr/hzZYq4E openpgp:0xFAAA0172
|
||||||
- name: matrixdotorg-synapse
|
- name: matrixdotorg-synapse
|
||||||
home_dir: /opt/matrixdotorg-synapse
|
home_dir: /opt/matrixdotorg-synapse
|
||||||
|
- name: caddy
|
||||||
|
home_dir: /opt/caddy
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
directories:
|
directories:
|
||||||
- path: /var/www/html
|
- path: /opt/caddy/data
|
||||||
|
- path: /opt/caddy/etc/caddy
|
||||||
|
- path: /opt/caddy/var/www/html
|
||||||
- path: /opt/matrixdotorg-synapse/data
|
- path: /opt/matrixdotorg-synapse/data
|
||||||
files:
|
files:
|
||||||
# hostname
|
# hostname
|
||||||
@@ -36,18 +40,23 @@ storage:
|
|||||||
inline: |
|
inline: |
|
||||||
127.0.0.1 localhost akpella.lan
|
127.0.0.1 localhost akpella.lan
|
||||||
::1 localhost akpella.lan
|
::1 localhost akpella.lan
|
||||||
- path: /etc/caddy/Caddyfile
|
- path: /opt/caddy/etc/caddy/Caddyfile
|
||||||
contents:
|
contents:
|
||||||
inline: |
|
inline: |
|
||||||
|
{
|
||||||
|
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
email akpall+akpella@fst.ee
|
||||||
|
}
|
||||||
|
|
||||||
fst.ee {
|
fst.ee {
|
||||||
root * /var/www/html
|
root * /var/www/html
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
matrix.fst.ee {
|
matrix.fst.ee {
|
||||||
reverse_proxy localhost:8008
|
reverse_proxy http://[::1]:8008
|
||||||
}
|
}
|
||||||
- path: /var/www/html/index.html
|
- path: /opt/caddy/var/www/html/index.html
|
||||||
contents:
|
contents:
|
||||||
inline: |
|
inline: |
|
||||||
<h1>no</h1>
|
<h1>no</h1>
|
||||||
@@ -92,8 +101,9 @@ systemd:
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=docker run \
|
ExecStart=docker run \
|
||||||
--name=caddy \
|
--name=caddy \
|
||||||
--mount type=bind,src=/etc/caddy,dst=/etc/caddy \
|
--mount type=bind,src=/opt/caddy/etc/caddy,dst=/etc/caddy \
|
||||||
--mount type=bind,src=/var/www/html,dst=/var/www/html \
|
--mount type=bind,src=/opt/caddy/var/www/html,dst=/var/www/html \
|
||||||
|
--mount type=bind,src=/opt/caddy/data,dst=/data \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
-p 443:443 \
|
-p 443:443 \
|
||||||
caddy:latest
|
caddy:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user