Skip to content

Commit 4c01e6a

Browse files
committed
Fixes from actual setup run
1 parent 4e33f26 commit 4c01e6a

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

server/Caddyfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
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

server/root.Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ edit-config: ## Edit the website config
2525
@echo ''
2626

2727
edit-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'

server/serversetup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ fi
206206
if [ $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

0 commit comments

Comments
 (0)