From 4084de4c44b8494c73d31b62de90aad845829877 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 9 Jan 2017 21:33:01 -0500 Subject: tidy --- doc/nginx.conf.example | 24 ++++++++++++++++++++++++ doc/uwsgi.ini.example | 9 +++++++++ nginx.conf.example | 24 ------------------------ notes.org | 3 --- uwsgi.ini.example | 9 --------- 5 files changed, 33 insertions(+), 36 deletions(-) create mode 100644 doc/nginx.conf.example create mode 100644 doc/uwsgi.ini.example delete mode 100644 nginx.conf.example delete mode 100644 notes.org delete mode 100644 uwsgi.ini.example diff --git a/doc/nginx.conf.example b/doc/nginx.conf.example new file mode 100644 index 0000000..403c66e --- /dev/null +++ b/doc/nginx.conf.example @@ -0,0 +1,24 @@ +# -*- mode: nginx; nginx-indent-level: 8; intent-tabs-mode: t -*- + +server { + server_name www.andrewdm.me; + listen 443 ssl http2; + listen [::]:443 ssl http2; + + if (-d /srv/http/$server_name/out/$uri) { + rewrite ^(.*[^/])$ $1/ permanent; + } + + location ~ [A-Z] { + uwsgi_pass unix:/run/uwsgi/www.sock; + uwsgi_modifier1 9; # Standard CGI request + include uwsgi_params; + } + + 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; + } +} diff --git a/doc/uwsgi.ini.example b/doc/uwsgi.ini.example new file mode 100644 index 0000000..e392044 --- /dev/null +++ b/doc/uwsgi.ini.example @@ -0,0 +1,9 @@ +[uwsgi] +master = true +processes = 1 + +uid = nobody +gid = http + +plugins = cgi +cgi = /srv/http/www.andrewdm.me/bin/lowercase.cgi diff --git a/nginx.conf.example b/nginx.conf.example deleted file mode 100644 index 403c66e..0000000 --- a/nginx.conf.example +++ /dev/null @@ -1,24 +0,0 @@ -# -*- mode: nginx; nginx-indent-level: 8; intent-tabs-mode: t -*- - -server { - server_name www.andrewdm.me; - listen 443 ssl http2; - listen [::]:443 ssl http2; - - if (-d /srv/http/$server_name/out/$uri) { - rewrite ^(.*[^/])$ $1/ permanent; - } - - location ~ [A-Z] { - uwsgi_pass unix:/run/uwsgi/www.sock; - uwsgi_modifier1 9; # Standard CGI request - include uwsgi_params; - } - - 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; - } -} diff --git a/notes.org b/notes.org deleted file mode 100644 index 5b00a25..0000000 --- a/notes.org +++ /dev/null @@ -1,3 +0,0 @@ -I need to insert this on all XML output: - - diff --git a/uwsgi.ini.example b/uwsgi.ini.example deleted file mode 100644 index e392044..0000000 --- a/uwsgi.ini.example +++ /dev/null @@ -1,9 +0,0 @@ -[uwsgi] -master = true -processes = 1 - -uid = nobody -gid = http - -plugins = cgi -cgi = /srv/http/www.andrewdm.me/bin/lowercase.cgi -- cgit v1.2.3