-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ssl capability but still don't have it working on the server, a…
…dded Albania page
- Loading branch information
Showing
10 changed files
with
153 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBAD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MQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTUwNDEzMDYwMzIyWjAjBgkqhkiG9w0BCQQxFgQUaYYmMekPweg5lGXuNdoyhzng4acwDQYJKoZIhvcNAQEBBQAEgYBBfsmnjfZJoao3FyL9NIqtVp6en7+7Q6mneaPlgSKZmCykAFBXotevuAhrF1hNMtQR03v/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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:~/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} · {{ .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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |