Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
cool things lol
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekEagle committed Jun 16, 2021
1 parent 49e1704 commit 23f2a65
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
52 changes: 52 additions & 0 deletions domain-specific-pages/discord-status.com.html
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<title>Not Discord Status</title>
<meta property="og:title" content="Is Discord down?" />
<meta property="og:description" content="Probably" />
<meta
property="og:image"
content="https://discord.com/assets/f9bb9c4af2b9c32a2c5ee0014661546d.png"
/>
<style>
body {
overflow: hidden;
}
.content {
display: flex;
align-content: center;
justify-content: center;
text-align: center;
width: fit-content;
height: 100vh;
flex-direction: column;
margin: auto;
}

.wrongplacetext {
font-size: 30px;
font-family: "Lato", sans-serif;
color: gray;
font-weight: bold;
}

a {
text-decoration: none;
color: #0078a7;
}
</style>
</head>
<body>
<div class="content">
<img
src="https://discord.com/assets/cb48d2a8d4991281d7a6a95d2f58195e.svg"
alt="Discord logo"
width="500"
/>
<p class="wrongplacetext">
I think you meant
<a href="https://discordstatus.com">discordstatus.com</a>
</p>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions nginx.conf
Expand Up @@ -34,7 +34,16 @@ server {
expires 30d;
add_header Cache-Control "public, no-transform";
ssl_ciphers HIGH:!aNULL:!MD5;
location ~ ^/api/domain/verify/ {
expires -1;
proxy_pass http://backend;
proxy_redirect \ http://backend/ /;
proxy_read_timeout 60s;
}
try_files /uploads/$uri @redirect;
location ~ / {
try_files /domain-specific-pages/$host.html @redirect;
}
location @redirect {
return 308 https://alekeagle.me$request_uri;
}
Expand All @@ -60,6 +69,11 @@ server {

server {
listen 80 default_server;
return 308 https://$host$request_uri;
}

server {
listen 80;
server_name http.localhost;
root /var/www-data/dist/;
expires 30d;
Expand Down

0 comments on commit 23f2a65

Please sign in to comment.