~sirodoht/mataroa

ref: e41ccd0181757f64258e9cad93ade228687cb614 mataroa/Caddyfile -rw-r--r-- 840 bytes
e41ccd01Theodore Keloglou add dark mode 10 months 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
*.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 5
            roll_keep_for 720h
        }
    }
}

: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 5
            roll_keep_for 720h
        }
    }
}