diff --git a/.well-known/matrix/server b/.well-known/matrix/server deleted file mode 100644 index 01afb28..0000000 --- a/.well-known/matrix/server +++ /dev/null @@ -1,3 +0,0 @@ -{ - "m.server": "matrix.pkrm.dev:443" -} \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index 634f326..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -pkrm.dev \ No newline at end of file diff --git a/pkrm.service b/pkrm.service new file mode 100644 index 0000000..7a0de37 --- /dev/null +++ b/pkrm.service @@ -0,0 +1,17 @@ +# Make sure to move this to /etc/systemd/system +# For Debian systems you then run `sudo systemctl enable pkrm` and `sudo systemctl start pkrm` + +# Make sure to change the `WorkingDirectory` and `ExecStart` paths, as it is most likely not correct +# for your setup. +[Unit] +Description=Keep PKRM.DEV Up and Running +After=network.target + +[Service] +Type=simple +WorkingDirectory=/home/parker/pkrm +ExecStart=/usr/bin/bash /home/parker/pkrm/pkrm.sh +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/pkrm.sh b/pkrm.sh new file mode 100644 index 0000000..09cd6cf --- /dev/null +++ b/pkrm.sh @@ -0,0 +1 @@ +gunicorn -b 0.0.0.0:6767 wsgi:app \ No newline at end of file diff --git a/serve.py b/serve.py new file mode 100644 index 0000000..6b95766 --- /dev/null +++ b/serve.py @@ -0,0 +1,25 @@ +import flask + +app = flask.Flask(__name__) + +@app.route('/') +def home(): + return flask.render_template('home.html') + +@app.route('/contact') +def contact(): + return flask.render_template('contact.html') + +@app.route('/contact.asc') +def pgp_key(): + return flask.render_template('contact.asc.html') + +@app.route('/.well-known/matrix/server') +def server(): + data = { + "m.server": "matrix.pkrm.dev:443" + } + return data + +if __name__ == '__main__': + app.run() \ No newline at end of file diff --git a/bg.png b/static/bg.png similarity index 100% rename from bg.png rename to static/bg.png diff --git a/contact.asc b/static/contact.asc similarity index 94% rename from contact.asc rename to static/contact.asc index 11f0e9f..38311e5 100644 --- a/contact.asc +++ b/static/contact.asc @@ -10,4 +10,4 @@ B8J4BBgWCgAgFiEEWLdri7q4eU0h4leclc0uDH4ynyoFAmSNOmECGwwACgkQlc0u DH4ynyqQhAEAuo1HGXEKkBUzji+cCW3wF/oqg0cQklQzfKUkifLhiC8A/2gdilxS AYHKY0lEJandkOjid/otDdiIZCUBt5mXjncL =ni8o ------END PGP PUBLIC KEY BLOCK----- +-----END PGP PUBLIC KEY BLOCK----- \ No newline at end of file diff --git a/contact/script.js b/static/contact.js similarity index 100% rename from contact/script.js rename to static/contact.js diff --git a/script.js b/static/home.js similarity index 100% rename from script.js rename to static/home.js diff --git a/style.css b/static/style.css similarity index 99% rename from style.css rename to static/style.css index fb46199..4248920 100644 --- a/style.css +++ b/static/style.css @@ -6,7 +6,7 @@ body{ overflow-x: hidden; - background-image: url(/bg.png); + background-image: url(/static/bg.png); background-size: cover; color: #fff; will-change: transform; diff --git a/templates/contact.asc.html b/templates/contact.asc.html new file mode 100644 index 0000000..614e4ef --- /dev/null +++ b/templates/contact.asc.html @@ -0,0 +1,121 @@ + + +
+ + + + +
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
+
+ xjMEZI06YRYJKwYBBAHaRw8BAQdAxymP7jguJxjtKKqGQ/fSXGwZVzOiix6iRS1F
+ 6BVMu+3NG1BhcmtlciBNIDxjb250YWN0QHBrcm0uZGV2PsKTBBMWCgA7FiEEWLdr
+ i7q4eU0h4leclc0uDH4ynyoFAmSNOmECGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC
+ HgcCF4AACgkQlc0uDH4ynyrBIAEAu7y2oebvsBb+tJXPUOZkjqE+rsAwiDgHLj3U
+ gYMM4XUBALPsZ4IgA5mWhTDTV00QLHmVtybCJzCdc7LzyvQH78cHzjgEZI06YRIK
+ KwYBBAGXVQEFAQEHQLBpSX+qSOtSFVrp9+VfJGHsoPaIhoxIjz44byrtLXZ4AwEI
+ B8J4BBgWCgAgFiEEWLdri7q4eU0h4leclc0uDH4ynyoFAmSNOmECGwwACgkQlc0u
+ DH4ynyqQhAEAuo1HGXEKkBUzji+cCW3wF/oqg0cQklQzfKUkifLhiC8A/2gdilxS
+ AYHKY0lEJandkOjid/otDdiIZCUBt5mXjncL
+ =ni8o
+
+ -----END PGP PUBLIC KEY BLOCK-----
+
+ Or, download the .asc file here. +
+