update + fix contact form
This commit is contained in:
parent
34161990d0
commit
8f148ef919
@ -30,7 +30,7 @@
|
|||||||
<a href="/" id="back-home">Back Home</a>
|
<a href="/" id="back-home">Back Home</a>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p id="attention">ATTENTION: To send any sensitive information, please email me at <a href="mailto:contact@pkrm.dev" id="contact-email">contact@pkrm.dev</a> and encrypt the message with my <a href="/static/contact.asc" id="pgp-key">PGP public key</a>. This form should not be thought of as a secure way of communication.</p>
|
<p id="attention">ATTENTION: To send any sensitive information, please email me at <a href="mailto:contact@pkrm.dev" id="contact-email">contact@pkrm.dev</a> and encrypt the message with my <a href="/static/contact.asc" id="pgp-key">PGP public key</a>. This form should not be thought of as a secure way of communication.</p>
|
||||||
<form actions="/contact" name="contact" onsubmit="event.preventDefault(); checkForm();">
|
<form actions="/contact" method="POST" name="contact" onsubmit="event.preventDefault(); checkForm();">
|
||||||
<input name="name" placeholder="Name">
|
<input name="name" placeholder="Name">
|
||||||
<input name="email" placeholder="Email">
|
<input name="email" placeholder="Email">
|
||||||
<textarea name="message" placeholder="Message"></textarea>
|
<textarea name="message" placeholder="Message"></textarea>
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
import flask
|
import flask
|
||||||
import os
|
import os
|
||||||
import discord
|
import discord
|
||||||
|
import dotenv
|
||||||
|
|
||||||
app = flask.Flask(__name__)
|
app = flask.Flask(__name__)
|
||||||
app.secret_key = os.urandom(32)
|
app.secret_key = os.urandom(32)
|
||||||
webhook_url = os.environ.get('WEBHOOK_URL')
|
dotenv.load_dotenv()
|
||||||
|
webhook_url = os.getenv("WEBHOOK_URL")
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def index():
|
def index():
|
||||||
|
14
pkrm.service
Normal file
14
pkrm.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Systemd service file, feel free to edit to your needs, this isnt needed though
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Keep PKRM.DEV Up and Running
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/home/parker/services/pkrm
|
||||||
|
ExecStart=/usr/bin/bash /home/parker/services/pkrm/pkrm.sh
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user