Skip to content

Commit

Permalink
Added ssl capability but still don't have it working on the server, a…
Browse files Browse the repository at this point in the history
…dded Albania page
  • Loading branch information
gburgett committed Apr 13, 2015
1 parent 51e8590 commit 4748d90
Show file tree
Hide file tree
Showing 10 changed files with 153 additions and 17 deletions.
43 changes: 43 additions & 0 deletions content/albania-tshirts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
+++
Categories = ["missions", "albania"]
Description = "Buy an Albania T-Shirt!"
Tags = ["missions", "albania", "cru"]
date = "2015-04-09T22:20:15-05:00"
menu = "main"
title = "Team Albania t-shirts!"
type = "custom-albania-tshirts"

+++

This fabulous T-Shirt was designed by our very own Danita Chappell, and is stylish, fashionable, and extremely comfortable. Make a statement at your next social gathering! Order one of these for the low low suggested donation of $20!

Warning! They tend to run a bit small. If you normally have plenty of room in your preferred size you should be OK, but I personally went a size up.

## How to order:
* Email me at [gordon.burgett@cru.org](mailto:gordon.burgett@cru.org)
* Let me know your size and the best way to get the shirt to you.
* If you don't live in the area, or would prefer I mail it, I need your address.

<h2>How to pay:</h2>
<div class="row">
<div class="col-md-9">
<ul>
<li>Please DO NOT pay by donating directly to CRU. We have to cover the cost of the shirts.</li>
<li>Unfortunately that means this is not tax deductable.</li>
<li>Cash or personal check are fine, made out to Gordon Burgett</li>
<li>You can also donate via Paypal, send it to gordon.burgett@cru.org</li>
</ul>
</div>
<div class="col-md-3">

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w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BXotevuAhrF1hNMtQR03v/GP5CwCWzoJbUYMtWCi4bagnHYf+xQ9i7eti5a7diubNZFPAqXseOcqOcbOGa1YkF4gYyr+VaYqdxhhBw4Rz8+gYD139RA8HRocyRjA==-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</div>

<h3><a href="/albania"><span class="glyphicon glyphicon-hand-left"></span> Back to Albania...</a></h3>
4 changes: 4 additions & 0 deletions content/albania.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ I would love to have a phone call with you, or meet you in person to talk more a
</div>
</div>

#### Spreading the word

I would love the opportunity to talk to your friends, community groups, bible studies, or even co-workers about what God is doing in Albania. Raising awareness of God's work in Albania is one of my primary goals! So please, Like, Tweet, and share with as many people as you can!

#### Financially

The cost of the STINT and the July trip in total are about $38,000. Our first deadline is May 15, by which I need to have $2000 raised to pay for plane tickets for the summer trip. My friends joining me on the summer trip will each need to raise $2800. If you'd be willing, I ask you to partner with me in the amount of $50 or $100 per month over the next 12 months, to help me meet my fundraising goal.
Expand Down
3 changes: 2 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/bash

hugo --baseUrl="http://www.gordonburgett.net"
rsync -az -e ssh --progress public/ ec2-user@www.gordonburgett.net:~/blog
rsync -az -e ssh --progress public/ ec2-user@www.gordonburgett.net:~/blog
rsync -e ssh package.json ec2-user@www.gordonburgett.net:~/
44 changes: 44 additions & 0 deletions layouts/custom-albania-tshirts/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title> {{ .Title }} &middot; {{ .Site.Title }} </title>
<link rel="canonical" href="{{ .Permalink }}/albania">
<!-- CSS -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/albania.css" />
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.ico">
<!-- Script -->
<script src="/js/jquery.min.js"></script>
<script src="/js/main.min.js">
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="jumbotron tshirt-img">
<div class="intro-message col-md-6 hidden-xs">
<h1>You know you want one!</h1>
</div>
</div>
</div>

<div class="row">
<div class="col-sm-12 col-sm-offset-0 col-xs-10 col-xs-offset-1">
{{ .Content }}
</div>
</div>

{{ partial "share.html" . }}
</div>
<!-- /.container -->
{{ partial "footer.html" .}}

<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
{{ partial "script.html" .}}
</body>
</html>
6 changes: 6 additions & 0 deletions layouts/custom-albania/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ <h1>Team Albania!</h1>

</div>
</div>
<div class="row intro-links">
<a href="mailto:gordon.burgett@cru.org?Subject=Please%20add%20me%20to%20your%20email%20list&Body=Hi%20Gordon%21%0APlease%20add%20me%20to%20the%20list%20to%20receive%20your%20email%20newsletter.">
<span class="glyphicon glyphicon-envelope"></span>Get the newsletter!
</a>
<a href="/albania-tshirts"><span class="glyphicon glyphicon-tag"></span>Buy a T-Shirt!</a>
</div>

<div class="row">
<div class="col-sm-12 col-sm-offset-0 col-xs-10 col-xs-offset-1">
Expand Down
8 changes: 5 additions & 3 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ <h1 class="panel-cover__title panel-title">
<nav class="cover-navigation cover-navigation--primary">
<ul class="navigation">
<li class="navigation__item"><a href="/#blog" title="link to {{ .Site.Title }} blog" class="blog-button">Blog</a> </li>
</br> {{ if .Site.Params.cv }}
<li class="navigation__item"><a href="{{ .Site.Params.cv }}" title="link to my CV " class="blog-button">CV</a> </li>
</br> {{ end }} </ul>
</br>
<li class="navigation__item"><a href="/albania" title="Albania!" class="blog-button">
Albania
</a></li>
</ul>
</nav> {{ partial "social.html" . }} </div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ trap "kill $hugo_pid; exit" SIGHUP SIGINT SIGTERM EXIT

cd public/

DEBUG=express:* node node/server.js 3000
DEBUG=express:* node node/server.js 8080 8081
23 changes: 23 additions & 0 deletions static/css/albania.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,30 @@ body {
background-size:cover;
}

.intro-links a {
color: green;
padding-left: 20px;
padding-right: 20px;
font-size: 20pt;
}

.tshirt-img {
background-image: url(../images/albania-tshirt-2015.jpg);
height: 640px;
background-repeat: no-repeat;
background-size:cover;
}

@media only screen and (max-width: 600px) and (orientation: portrait){
.intro-header {
background-size: 100% 100%;
height: 260px;
}

.tshirt-img {
background-size: 100% 100%;
height: 260px;
}
}

.intro-message {
Expand All @@ -33,4 +52,8 @@ body {
padding-top: 5px;
padding-bottom: 10px;
margin-top: 50px;
}

.tshirt-img .intro-message {
margin-top:300px;
}
Binary file added static/images/albania-tshirt-2015.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 25 additions & 12 deletions static/node/server.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
#!/usr/bin/env node

var fs = require('fs');
var privateKey = fs.readFileSync(process.env.HOME + '/www.gordonburgett.net_private_key.key');
var certificate = fs.readFileSync(process.env.HOME + '/www.gordonburgett.net_ssl_certificate.cer');
var cacert = fs.readFileSync(process.env.HOME + '/cacert.cer');

port = 80
if(process.argv.length > 2){
port = parseInt(process.argv[2])
}
sslport = 443
if(process.argv.length > 3) {
sslport = parseInt(process.argv[3])
}

var express = require('express')
var express = require('express');
var https = require('https');
var http = require('http');

var app = express()
var app = express();

//hide everything in the node folder
app.use('/node', function (req, res, next) {
res.status(404).sendFile('404.html', {root: process.cwd()});
})
console.log("listening on port " + port + " ssl " + sslport)

app.use(express.static('.'))
http.createServer(app).listen(port);
https.createServer({key: privateKey, cert: certificate, ca:cacert}, app).listen(sslport);


app.use(function(req, res, next) {
res.status(404).sendFile('404.html', {root: process.cwd()});
});
function send404(req, res, next) {
res.status(404).sendFile('404.html', {root: process.cwd()});
}

//hide everything in the node folder
app.use('/node', send404)

app.use(express.static('.'))

console.log('listening on port ' + port)
app.listen(port)
app.use(send404);

0 comments on commit 4748d90

Please sign in to comment.