diff --git a/nginx.conf b/nginx.conf index 817e3c1..07658d2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,6 +3,7 @@ error_log stderr notice; daemon off; env PORT; +env GITHUB_TOKEN; events { worker_connections 1024; @@ -29,5 +30,32 @@ http { location /favicon.ico { alias static/favicon.ico; } + + location /capture { + internal; + resolver 8.8.8.8; + set_unescape_uri $clean_url $arg_url; + proxy_pass $clean__url; + } + + location /proxy { + internal; + rewrite_by_lua " + local req = ngx.req + for k,v in pairs(req.get_headers()) do + if k ~= 'content-length' then + req.clear_header(k) + end + end + if ngx.ctx.headers then + for k,v in pairs(ngx.ctx.headers) do + req.set_header(k, v) + end + end + "; + resolver 8.8.8.8; + proxy_http_version 1.1; + proxy_pass $_url; + } } } diff --git a/views/index.moon b/views/index.moon index 97700f5..9985731 100644 --- a/views/index.moon +++ b/views/index.moon @@ -6,6 +6,8 @@ class Index extends Widget h1 "Christine Dodrill" p class: "lead", "Rockstar gopher, innovative thinker, programmer for hire." + a class: "btn btn-primary btn-lg", href: "/about", role: "button", "Find out more" + div class: "row", -> div class: "col-md-4", -> p "Pitchfork tilde tofu scenester, ugh fingerstache gastropub wolf food truck authentic fap squid retro drinking vinegar. Mustache organic polaroid, flexitarian chillwave chia plaid occupy pickled mlkshk. Messenger bag next level biodiesel master cleanse stumptown vinyl polaroid butcher distillery, kitsch freegan fashion axe gastropub forage. Craft beer mumblecore Brooklyn freegan Schlitz. Stumptown pug PBR&B High Life meh, umami Banksy tousled synth actually biodiesel. Wayfarers master cleanse chillwave street art. Thundercats artisan single-origin coffee, squid yr whatever Godard cray mumblecore."