-
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.
- Loading branch information
Showing
56 changed files
with
19,010 additions
and
0 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,28 @@ | ||
name: Build and Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' # Use the version you prefer | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Start | ||
run: npm run start | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 |
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 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: '.' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: node app.js | ||
#uses: actions/deploy-pages@v2 |
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,8 @@ | ||
node_modules/* | ||
*~ | ||
.DS_Store | ||
*/.DS_Store | ||
*/*/.DS_Store | ||
*/*/*/.DS_Store | ||
*/*/*/*/.DS_Store | ||
*/*/*/*/*/.DS_Store |
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 @@ | ||
#This is the branch that holds all of the pre rendered static html files |
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,104 @@ | ||
#!/usr/bin/env/ node | ||
var express = require('express'); | ||
var path = require('path'); | ||
var favicon = require('serve-favicon'); | ||
var logger = require('morgan'); | ||
var cookieParser = require('cookie-parser'); | ||
var bodyParser = require('body-parser'); | ||
|
||
var index = require('./routes/index'); | ||
var users = require('./routes/users'); | ||
|
||
var app = express(); | ||
|
||
// view engine setup | ||
app.set('views', path.join(__dirname, 'views')); | ||
app.set('view engine', 'ejs'); | ||
app.use(express.static(__dirname + '/public/')); | ||
|
||
// uncomment after placing your favicon in /public | ||
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); | ||
app.use(logger('dev')); | ||
app.use(bodyParser.json()); | ||
app.use(bodyParser.urlencoded({ extended: false })); | ||
app.use(cookieParser()); | ||
app.use(express.static(path.join(__dirname, 'public'))); | ||
|
||
app.use('/', index); | ||
app.use('/index', index); | ||
app.use('/users', users); | ||
|
||
//routes | ||
app.get('/partners', function (req, res) { | ||
res.render('partners'); | ||
}) | ||
|
||
var fs = require('fs'); | ||
var obj = JSON.parse(fs.readFileSync('public/json/research.json', 'utf8')); | ||
app.get('/research', function (req, res) { | ||
res.render('research',{data:obj}); | ||
}) | ||
|
||
app.get('/contact', function (req, res) { | ||
res.render('contact'); | ||
}) | ||
app.get('/about', function (req, res) { | ||
res.render('about'); | ||
}) | ||
app.get('/news', function (req, res) { | ||
res.render('news'); | ||
}) | ||
app.get('/missions', function (req, res) { | ||
res.render('missions'); | ||
}) | ||
app.get('/apply', function (req, res) { | ||
res.redirect('https://docs.google.com/forms/d/e/1FAIpQLSeHtyeO-Ee9xQcP0ogfmwHJSdVeTb15OApwqrLvqePpJp0vrw/viewform'); | ||
}) | ||
app.get('/partners', function (req, res) { | ||
res.render('partners'); | ||
}) | ||
app.get('/outreach', function (req, res) { | ||
res.render('outreach'); | ||
}) | ||
app.get('/founding', function (req, res) { | ||
res.render('founding'); | ||
}) | ||
app.get('/facilities', function (req, res) { | ||
res.render('facilities'); | ||
}) | ||
app.get('/alumni', function (req, res) { | ||
res.render('alumni'); | ||
}) | ||
app.get('/donate', function (req, res) { | ||
res.redirect('https://gail.uga.edu/commit?search=90072000&desonly=1'); | ||
}) | ||
app.get('/software', function (req, res) { | ||
res.render('software'); | ||
}) | ||
// redirect to the thesis data of caleb | ||
app.get('/orbitalReconstructionDataset', function (req, res) { | ||
res.redirect('http://104.236.14.11/'); | ||
}) | ||
// catch 404 and forward to error handler | ||
app.use(function(req, res, next) { | ||
var err = new Error('Not Found'); | ||
err.status = 404; | ||
next(err); | ||
}); | ||
|
||
// error handler | ||
app.use(function(err, req, res, next) { | ||
// set locals, only providing error in development | ||
res.locals.message = err.message; | ||
res.locals.error = req.app.get('env') === 'development' ? err : {}; | ||
|
||
// render the error page | ||
res.status(err.status || 500); | ||
res.render('error'); | ||
}); | ||
var server = app.listen(80, function () { | ||
var host = server.address().address; | ||
var port = server.address().port; | ||
console.log('running at http://' + host + ':' + port) | ||
}); | ||
module.exports = app; |
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,19 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIIDHjCCAgYCAQAwgb0xCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdHZW9yZ2lhMQ8w | ||
DQYDVQQHDAZBdGhlbnMxHjAcBgNVBAoMFVVuaXZlcnNpdHkgb2YgR2VvcmdpYTEs | ||
MCoGA1UECwwjU21hbGwgU2F0ZWxsaXRlIFJlc2VhcmNoIExhYm9yYXRvcnkxHTAb | ||
BgNVBAMMFHd3dy5zbWFsbHNhdC51Z2EuZWR1MR4wHAYJKoZIhvcNAQkBFg9zc3Js | ||
dWdhQHVnYS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHhqzS | ||
haZWKxjKUrV5i2Xu8Tv3vDJ07Wyq97D5r2n5l1VHvD60G7PlfkWM2zqa5IFf+RtF | ||
JVrtiVSo/Y9kc96Ls45nN60BwveLylEyf6rS3MhskIlngd632uLrFLc01MVyy3yf | ||
bf2wqkl1y3DxZ28Fn3gicvZxcUgetscWoaBFPb1XsuNMWkkF9X2zwKy/jguZ0SDc | ||
SFNm6hOmRZaOwakD4WeDRC/Lhl1XzU+RiEK2PyCocu1NeW+jAOhdMajGfATHFy5+ | ||
hUX08oRF7lgiDUiAJPXbBkbqSekMrZoUxyAUkVJ7RlGSgJPSagDSM8+uS/c+iFfS | ||
cbTSMVYNMH6cRwXLAgMBAAGgGzAZBgkqhkiG9w0BCQcxDAwKdGFjb2JlbGw7OzAN | ||
BgkqhkiG9w0BAQsFAAOCAQEAViUViyNaXDez05uyAPq4jFaKfNZ6VFV+RV2xIhX/ | ||
hYHvtP/IY/nDsl1Oyqf4UBCh16hU4rVmyl241AuAjW9c/M+62x1aRy/OC8bcdtDE | ||
250Ts36dm2rTV9Tg+TUid1oYAVCu8ffwULINxSrvnrqCNe6CbYOjA+m+pKwF53rF | ||
MixuXO1c6lU0NRtR3GDkSjlXIxLYZZMc6cHSmJEFoRE4leiM3NWwwd78xPsr/zSF | ||
jQXDtzgutVn4matdrKLY+GyIoMGbGdrc5zrRuIixWWOCfm1ajjRu4xiCtLbN4W6I | ||
krbPFMGssAsbcPou1rs+8WwXuf8hB8srgXsTjldvyBuWHQ== | ||
-----END CERTIFICATE REQUEST----- |
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,30 @@ | ||
-----BEGIN ENCRYPTED PRIVATE KEY----- | ||
MIIFHDBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIaDxstitpfiACAggA | ||
MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECLj/Ot0UmImJBIIEyI4WKSUXOJWk | ||
vJpsBPFlkvwnRLVEGDbarOZICL7uYscQzBCrDyv8wtHHCBkV2qd44bforKX4EdGU | ||
9tG3vE98dv+ggcRKYmS1HABIeYL8vG2g4l+yVNlJ5VlNg2gGP7gSevYgGNv5R1Q3 | ||
lT5n6e7KgSzgv3aBDBWe1rKOxNVmaQhYsHYUbGm9YKrLfEf4mKZ+fXAXKszX2QU3 | ||
rDYweIrhrLgemMZtBmgXVAPl+8WGP622XE54hQJs74zv+sfU1U5v95DiSTG4ljf/ | ||
Q35FtE3GHf5OHz6NFAJOlvJrpVA8SZoTrFjDdheVDH5QECeALOQ3H/quciM5+gdA | ||
8HUKOzg6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wx | ||
MXSfXeb3C+s8Tw5PFOG9ezLPcsYHY45dbcs6Mh5TiaTH69iDRoVj0lucOoYb4qwk | ||
0y9QKAl8UriRTs8kbt6bx/jas2wZSf3G4RpgCZIr2hTJA5axvu9ogeiXpTMoSAoM | ||
Pqztm5er4PYDVKAd11KmhGbWN96vT0F6xIljEfNwrTkxSRcv+Ao/GwnWik3dFgOf | ||
MS8tuAGY0Do5HqKeKJxUvd8JhhiEU3ptFYFtggvk9JNRZWjBIwEJI1g4BmM+VC/x | ||
PaDIckclRcSWPkQENxoMuw== | ||
-----END ENCRYPTED PRIVATE KEY----- |
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,27 @@ | ||
/* Jeffery John experimenting w/ https */ | ||
var https = require('https'); | ||
|
||
var fs = require('fs'); | ||
|
||
var https_options = { | ||
|
||
key: fs.readFileSync("/home/ssrl/SSRL_Site/bin/PRIVATEKEY.key"), | ||
|
||
cert: fs.readFileSync("/home/ssrl/SSRL_Site/bin/www_smallsat_uga_edu_cert.cer"), | ||
|
||
ca: [ | ||
|
||
fs.readFileSync('/home/ssrl/SSRL_Site/bin/www_smallsat_uga_edu_cert.cer'), | ||
|
||
fs.readFileSync('/home/ssrl/SSRL_Site/bin/www_smallsat_uga_edu_cert.cer') | ||
|
||
] | ||
}; | ||
|
||
https.createServer(options, function (req, res) { | ||
|
||
res.writeHead(200); | ||
|
||
res.end("Welcome to Node.js HTTPS Server"); | ||
|
||
}).listen(8443) |
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,90 @@ | ||
#!/usr/bin/env node | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var app = require('../app'); | ||
var debug = require('debug')('ssrl-site2:server'); | ||
var http = require('http'); | ||
|
||
/** | ||
* Get port from environment and store in Express. | ||
*/ | ||
|
||
var port = normalizePort(process.env.PORT || '3000'); | ||
app.set('port', port); | ||
|
||
/** | ||
* Create HTTP server. | ||
*/ | ||
|
||
var server = http.createServer(app); | ||
|
||
/** | ||
* Listen on provided port, on all network interfaces. | ||
*/ | ||
|
||
server.listen(port); | ||
server.on('error', onError); | ||
server.on('listening', onListening); | ||
|
||
/** | ||
* Normalize a port into a number, string, or false. | ||
*/ | ||
|
||
function normalizePort(val) { | ||
var port = parseInt(val, 10); | ||
|
||
if (isNaN(port)) { | ||
// named pipe | ||
return val; | ||
} | ||
|
||
if (port >= 0) { | ||
// port number | ||
return port; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "error" event. | ||
*/ | ||
|
||
function onError(error) { | ||
if (error.syscall !== 'listen') { | ||
throw error; | ||
} | ||
|
||
var bind = typeof port === 'string' | ||
? 'Pipe ' + port | ||
: 'Port ' + port; | ||
|
||
// handle specific listen errors with friendly messages | ||
switch (error.code) { | ||
case 'EACCES': | ||
console.error(bind + ' requires elevated privileges'); | ||
process.exit(1); | ||
break; | ||
case 'EADDRINUSE': | ||
console.error(bind + ' is already in use'); | ||
process.exit(1); | ||
break; | ||
default: | ||
throw error; | ||
} | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "listening" event. | ||
*/ | ||
|
||
function onListening() { | ||
var addr = server.address(); | ||
var bind = typeof addr === 'string' | ||
? 'pipe ' + addr | ||
: 'port ' + addr.port; | ||
debug('Listening on ' + bind); | ||
} |
Oops, something went wrong.