From edb903553bbc7bafc8b05d256f039c961ce58dc9 Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@sbcglobal.net>
Date: Tue, 3 Jan 2017 16:49:13 -0500
Subject: implement search

---
 nginx.conf.example | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 nginx.conf.example

(limited to 'nginx.conf.example')

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;
+        }
+}
-- 
cgit v1.2.3-2-g168b