diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 16:49:13 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 16:49:13 -0500 |
commit | edb903553bbc7bafc8b05d256f039c961ce58dc9 (patch) | |
tree | bf09c922a91faba96b0eb220c018b60e7a1eac74 | |
parent | 4b13bad24984951c7e8536a549ab491002a91222 (diff) |
implement search
-rw-r--r-- | nginx.conf.example | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nginx.conf.example b/nginx.conf.example new file mode 100644 index 0000000..71a6b27 --- /dev/null +++ b/nginx.conf.example @@ -0,0 +1,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; + } +} |