fixed something
This commit is contained in:
11
.gitignore
vendored
11
.gitignore
vendored
@@ -2,9 +2,6 @@
|
|||||||
mysql-data/
|
mysql-data/
|
||||||
logs/
|
logs/
|
||||||
|
|
||||||
# Node modules (if any)
|
|
||||||
node_modules/
|
|
||||||
|
|
||||||
# OS generated files
|
# OS generated files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
@@ -12,3 +9,11 @@ Thumbs.db
|
|||||||
# Temporary files
|
# Temporary files
|
||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
|
|
||||||
|
# Sensitive configuration files
|
||||||
|
config/*.env
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# Sensitive configuration files
|
||||||
|
config/*.env
|
||||||
|
*.pem
|
||||||
12
000-default.conf
Normal file
12
000-default.conf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/html/
|
||||||
|
|
||||||
|
<Directory /var/www/html/>
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
</VirtualHost>
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
|
||||||
dustins-fault:
|
|
||||||
build: .
|
|
||||||
container_name: dustins-fault-website
|
|
||||||
ports:
|
|
||||||
- "8080:80"
|
|
||||||
- "8443:443" # Because why not have HTTPS for a joke site?
|
|
||||||
volumes:
|
|
||||||
- ./logs:/usr/local/apache2/logs
|
|
||||||
environment:
|
|
||||||
- APACHE_RUN_USER=www-data
|
|
||||||
- APACHE_RUN_GROUP=www-data
|
|
||||||
- APACHE_LOG_DIR=/usr/local/apache2/logs
|
|
||||||
- TZ=America/New_York
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- dustins-fault-net
|
|
||||||
labels:
|
|
||||||
- "com.dustinsfault.description=Website blaming Dustin for everything"
|
|
||||||
- "com.dustinsfault.blame-level=maximum"
|
|
||||||
- "com.dustinsfault.apologies-required=infinite"
|
|
||||||
|
|
||||||
# Because why not add a MySQL database to track all the things Dustin has fucked up?
|
|
||||||
dustins-fault-db:
|
|
||||||
image: mysql:8.0
|
|
||||||
container_name: dustins-fault-database
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=itsdustinsfault
|
|
||||||
- MYSQL_DATABASE=dustins_faults
|
|
||||||
- MYSQL_USER=dustin
|
|
||||||
- MYSQL_PASSWORD=blame_me
|
|
||||||
volumes:
|
|
||||||
- ./mysql-data:/var/lib/mysql
|
|
||||||
- ./mysql-init:/docker-entrypoint-initdb.d
|
|
||||||
networks:
|
|
||||||
- dustins-fault-net
|
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
- "com.dustinsfault.purpose=Track Dustin's endless fuckups"
|
|
||||||
|
|
||||||
# And a phpMyAdmin because we're fancy like that
|
|
||||||
phpmyadmin:
|
|
||||||
image: phpmyadmin/phpmyadmin
|
|
||||||
container_name: dustins-fault-phpmyadmin
|
|
||||||
environment:
|
|
||||||
- PMA_HOST=dustins-fault-db
|
|
||||||
- PMA_PORT=3306
|
|
||||||
- PMA_ARBITRARY=1
|
|
||||||
ports:
|
|
||||||
- "8081:80"
|
|
||||||
networks:
|
|
||||||
- dustins-fault-net
|
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
- "com.dustinsfault.purpose=View database of Dustin's sins"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
dustins-fault-net:
|
|
||||||
driver: bridge
|
|
||||||
name: dustins-fault-network
|
|
||||||
11
www/404.html
11
www/404.html
@@ -1,15 +1,15 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Error - Dustin's Fault</title>
|
<title>Error - Dustin's Fault</title>
|
||||||
<style>
|
<style>
|
||||||
body{font-family: monospace;background:#000;color:#0f0;margin:40px}
|
body { font-family: monospace; background: #000; color: #0f0; margin: 40px; }
|
||||||
h1{color:#f00}
|
h1 { color: #f00; }
|
||||||
pre{color:#ff0}
|
pre { color: #ff0; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>ERROR 404 - PAGE NOT FOUND</h1>
|
<h1>Error 404 - Page Not Found</h1>
|
||||||
<p>This page doesn't exist. You know who to blame.</p>
|
<p>This page doesn't exist. You know who to blame.</p>
|
||||||
<pre>
|
<pre>
|
||||||
_____
|
_____
|
||||||
@@ -22,5 +22,6 @@ pre{color:#ff0}
|
|||||||
It's Dustin's fault. Obviously.
|
It's Dustin's fault. Obviously.
|
||||||
</pre>
|
</pre>
|
||||||
<p><a href="/" style="color:#0ff">Go back to blaming Dustin properly</a></p>
|
<p><a href="/" style="color:#0ff">Go back to blaming Dustin properly</a></p>
|
||||||
|
<p aria-describedby="404error-desc">If you actually like Dustin, you might want to rethink your life choices!</p><p id="404error-desc" style="color:#ff0">Because nobody should be this unlucky!</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Security note: Sanitize inputs and control command execution carefully
|
||||||
|
|
||||||
|
# Print header
|
||||||
echo "Content-type: text/html"
|
echo "Content-type: text/html"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
@@ -61,28 +64,21 @@ pre {
|
|||||||
<pre>
|
<pre>
|
||||||
$(/usr/bin/fortune)
|
$(/usr/bin/fortune)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p><b>Dustin's fault level:</b> $(echo $((RANDOM % 100 + 1)) )%</p>
|
<p><b>Dustin's fault level:</b> $(echo $((RANDOM % 100 + 1)) )%</p>
|
||||||
|
|
||||||
<p><b>Figlet says:</b></p>
|
<p><b>Figlet says:</b></p>
|
||||||
<pre>
|
<pre>
|
||||||
$(echo "DUSTIN'S FAULT" | /usr/bin/figlet)
|
$(echo "DUSTIN'S FAULT" | /usr/bin/figlet)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<div class="apology">
|
<div class="apology">
|
||||||
$(echo "I'm sorry. It's my fault. I fucked up." | /usr/bin/lolcat)
|
$(echo "I'm sorry. It's my fault. I messed up." | /usr/bin/lolcat)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>BLAME LEVEL: MAXIMUM</h2>
|
<h2>BLAME LEVEL: MAXIMUM</h2>
|
||||||
<p>Current blame allocation: <span style="color:#f00;font-size:2em;">100%</span> Dustin's Fault</p>
|
<p>Current blame allocation: <span style="color:#f00;font-size:2em;">100%</span> Dustin's Fault</p>
|
||||||
|
|
||||||
<form action="/cgi-bin/blame-dustin.cgi" method="post">
|
<form action="/cgi-bin/blame-dustin.cgi" method="post">
|
||||||
<input type="hidden" name="blame" value="more">
|
<input type="hidden" name="blame" value="more">
|
||||||
<button type="submit" class="blame-button">BLAME DUSTIN EVEN HARDER</button>
|
<button type="submit" class="blame-button">BLAME DUSTIN EVEN HARDER</button>
|
||||||
</form>
|
</form>
|
||||||
|
<p><a href="/" style="color:#0ff;">↩️ Back to the main blame portal</a></p>
|
||||||
<p><a href="/" style="color:#0ff;">← Back to the main blame portal</a></p>
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<small>Server time: $(date)<br>
|
<small>Server time: $(date)<br>
|
||||||
This page has been viewed $(echo $RANDOM) times by people blaming Dustin.<br>
|
This page has been viewed $(echo $RANDOM) times by people blaming Dustin.<br>
|
||||||
|
|||||||
863
www/index.html
863
www/index.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user