File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 acme_dns cloudflare <CLOUDFLARE KEY>
3- order cgi last
43}
54
65<DOMAIN>, * .<DOMAIN> {
76 uri path_regexp ^/static/ /public/
8- handle /.well-known/matrix/server {
9- respond "{\" m.server\" : \" matrix.handmade.network:443\" }"
10- header Content-Type application/json
11- }
127 handle /public/* {
138 file_server {
149 root /home/hmn/hmn
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ edit-config: ## Edit the website config
2525 @echo ' '
2626
2727edit-caddyfile : # # Edit the Caddyfile
28- vim /home /caddy/Caddyfile
28+ vim /etc /caddy/Caddyfile
2929 @echo ' Now that you have edited the Caddyfile, you probably want to restart Caddy:'
3030 @echo ' '
3131 @echo ' systemctl restart caddy'
Original file line number Diff line number Diff line change 206206if [ $checkpoint -lt 100 ]; then
207207 cp /home/hmn/hmn/server/Caddyfile /etc/caddy/Caddyfile
208208
209+ mkdir -p /etc/systemd/system/caddy.service.d
209210 cp /home/hmn/hmn/server/caddy.service.override /etc/systemd/system/caddy.service.d/override.conf
210211 cp /home/hmn/hmn/server/hmn.service /etc/systemd/system/hmn.service
211212 chmod 644 /etc/systemd/system/caddy.service.d/override.conf
You can’t perform that action at this time.
0 commit comments