~sirodoht/mataroa

mataroa/Caddyfile -rw-r--r-- 848 bytes
521adb51Theodore Keloglou fix page ul ol serif theme 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
*.mataroa.blog, mataroa.blog {
	route {
		file_server /static/* {
			root /home/roa/mataroa
		}
		reverse_proxy 127.0.0.1:5000
	}

	tls /etc/letsencrypt/live/mataroa.blog/fullchain.pem /etc/letsencrypt/live/mataroa.blog/privkey.pem

	encode zstd gzip

	log {
		output file /var/log/caddy-mataroa.log {
			roll_size 1gb
			roll_keep 1
			roll_keep_for 720h
		}
		format filter {
			wrap console
			fields {
				request>headers>Authorization delete
			}
		}
	}
}

:443 {
	route {
		file_server /static/* {
			root /home/roa/mataroa
		}
		reverse_proxy 127.0.0.1:5000
	}

	tls zf+caddy@sirodoht.com {
		on_demand
	}

	encode zstd gzip

	log {
		output file /var/log/caddy-customdomains.log {
			roll_size 1gb
			roll_keep 1
			roll_keep_for 720h
		}
		format filter {
			wrap console
			fields {
				request>headers>Authorization delete
			}
		}
	}
}