feat(gws.fyi): add current source of gws.fyi
This will soon be replaced with a pile of org, but for now- HTML! Change-Id: I54c15d5734fd3662ea4916553e0cd1b32cc0681f Reviewed-on: https://cl.tvl.fyi/c/depot/+/395 Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
61e03e2d99
commit
ef390b26ee
6 changed files with 80 additions and 0 deletions
1
users/glittershark/gws.fyi/.envrc
Normal file
1
users/glittershark/gws.fyi/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
eval "$(lorri direnv)"
|
1
users/glittershark/gws.fyi/.gitignore
vendored
Normal file
1
users/glittershark/gws.fyi/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
result
|
22
users/glittershark/gws.fyi/Makefile
Normal file
22
users/glittershark/gws.fyi/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
.PHONY: deploy
|
||||
|
||||
deploy:
|
||||
@`nix-build --no-out-link`
|
||||
|
||||
renew:
|
||||
@echo Renewing...
|
||||
@certbot renew \
|
||||
--manual \
|
||||
--preferred-challenges dns \
|
||||
--server https://acme-v02.api.letsencrypt.org/directory \
|
||||
--agree-tos \
|
||||
--work-dir $(shell pwd)/letsencrypt/work \
|
||||
--logs-dir $(shell pwd)/letsencrypt/logs \
|
||||
--config-dir $(shell pwd)/letsencrypt/config
|
||||
|
||||
backup:
|
||||
@tarsnap -cf $(shell uname -n)-letsencrypt-$(shell date +%Y-%m-%d_%H-%M-%S) \
|
||||
letsencrypt/
|
||||
|
||||
open:
|
||||
$$BROWSER "http://gws.fyi"
|
16
users/glittershark/gws.fyi/default.nix
Normal file
16
users/glittershark/gws.fyi/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
with import <nixpkgs> {};
|
||||
let
|
||||
bucket = "s3://gws.fyi";
|
||||
distributionID = "E2ST43JNBH8C64";
|
||||
website =
|
||||
runCommand "gws.fyi" { } ''
|
||||
mkdir -p $out
|
||||
cp ${./index.html} $out/index.html
|
||||
'';
|
||||
in writeShellScript "deploy.sh" ''
|
||||
${awscli}/bin/aws s3 sync ${website}/ ${bucket}
|
||||
${awscli}/bin/aws cloudfront create-invalidation \
|
||||
--distribution-id "${distributionID}" \
|
||||
--paths "/*"
|
||||
echo "Deployed to http://gws.fyi"
|
||||
''
|
31
users/glittershark/gws.fyi/index.html
Normal file
31
users/glittershark/gws.fyi/index.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Griffin has a website now">
|
||||
<title>griffin smith</title>
|
||||
</head>
|
||||
<body>
|
||||
my name is griffin ward smith (aka grfn, glittershark, gws) and i'm a software
|
||||
engineer and musician
|
||||
|
||||
<ul>
|
||||
<li><a href="https://github.com/glittershark/">github</a></li>
|
||||
<li><a href="https://sacrosanct.bandcamp.com/">music</a></li>
|
||||
</ul>
|
||||
|
||||
contact
|
||||
|
||||
<ul>
|
||||
<li><a href="mailto:root@gws.fyi">root@gws.fyi</a></li>
|
||||
<li><a href="https://twitter.com/glittershark1">twitter</a></li>
|
||||
<li><a href="https://keybase.io/glittershark">keybase</a></li>
|
||||
<li>
|
||||
<a href="http://keys.gnupg.net/pks/lookup?op=get&search=0x44EF5B5E861C09A7">
|
||||
gpg key: 0F11A989879E8BBBFDC1E23644EF5B5E861C09A7
|
||||
</a>
|
||||
<br>
|
||||
verify with keybase, if you don't trust this site's lack of SSL
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
9
users/glittershark/gws.fyi/shell.nix
Normal file
9
users/glittershark/gws.fyi/shell.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
with import <nixpkgs> {};
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
awscli
|
||||
gnumake
|
||||
letsencrypt
|
||||
tarsnap
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue