summaryrefslogtreecommitdiff
path: root/nginx.conf.example
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf.example')
-rw-r--r--nginx.conf.example14
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;
+ }
+}