aboutsummaryrefslogtreecommitdiff
path: root/etc/Caddyfile
blob: 0239f7223ffe3661f2938d92cbd840fca94ca5d8 (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
    servers :443 {
        timeouts {
            idle 600s
            read_body 600s
            read_header 600s
            write 600s
        }
        max_header_size 100MB
    }
    servers {
        timeouts {
            idle 600s
            read_body 600s
            read_header 600s
            write 600s
        }
        max_header_size 20MB
    }
}

nextcloud.{$HOST} {
    log {
        level INFO
        output file {$LOG_FILE} {
            roll_size 10MB
            roll_keep 10
        }
    }

    tls {$EMAIL}

    encode gzip
    
    header {
        # enable HSTS
        # Strict-Transport-Security max-age=31536000;
    }

    file_server
    root * /var/www/nextcloud

    @forbidden {
        path /.htaccess
        path /data/*
        path /config/*
        path /db_structure
        path /.xml
        path /README
        path /3rdparty/*
        path /lib/*
        path /templates/*
        path /occ
        path /console.php
    }
    respond @forbidden 404
    php_fastcgi nextcloud:9000 {
        root /var/www/html
        env front_controller_active true
        dial_timeout 600s
        read_timeout 600s
        write_timeout 600s
    }
}

vaultwarden.{$HOST} {
    log {
        level INFO
        output file {$LOG_FILE} {
            roll_size 10MB
            roll_keep 10
        }
    }

    tls {$EMAIL}

    encode gzip

    reverse_proxy /notifications/hub vaultwarden:3012
    reverse_proxy vaultwarden:80 {
        header_up X-Real-IP {remote_host}
    }
}

transmission.{$HOST} {
    log {
        level INFO
        output file {$LOG_FILE} {
            roll_size 10MB
            roll_keep 10
        }
    }

    tls {$EMAIL}

    encode gzip

    reverse_proxy transmission:9091 {
        header_up X-Real-IP {remote_host}
    }
}