summaryrefslogtreecommitdiffstats
path: root/etc/httpd.conf
blob: ca249d212934b9aaeab85920578268b461f9bf62 (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
server "nfsw.dingy.space" {
        listen on * port 80
        location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }
        location * {
                block return 302 "https://$HTTP_HOST$REQUEST_URI"
        }
}

server "nfsw.dingy.space" {
        listen on * tls port 443
        tls {
                certificate "/etc/ssl/nfsw.dingy.space.fullchain.pem"
                key "/etc/ssl/private/nfsw.dingy.space.key"
        }
        location "/.well-known/acme-challenge/*" {
                root "/acme"
                request strip 2
        }

        fastcgi socket ":4201"
}