summaryrefslogtreecommitdiff
path: root/nginx.conf.example
blob: 71a6b27364284a9f2afa5e4e02f3e38a4c44fbc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- mode: nginx; nginx-indent-level: 8; intent-tabs-mode: t -*-

server {
        server_name www.andrewdm.me;
        listen 443 ssl http2;
        listen [::]:443 ssl http2;

        location / {
                try_files /out$uri/index.html /out$uri /src$uri =404;
        }
        location /search.html {
                return 302 https://duckduckgo.com/?q=site:$host+$arg_s;
        }
}