added website

This commit is contained in:
114465 2024-02-05 19:04:03 -05:00
parent 78313059e7
commit fa42f3bd5a
5 changed files with 73 additions and 0 deletions

12
website/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM alpine
RUN apk add nginx
COPY index.html /var/lib/nginx/html/index.html
COPY style.css /var/lib/nginx/html/style.css
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx"]
EXPOSE 80

7
website/README.md Normal file
View File

@ -0,0 +1,7 @@
## Hosting
This site is not hosted publicly at the moment because I don't own a domain name or VPS.
## Usage
Use the Dockerfile to build a docker image and then make a container to view the site

17
website/index.html Normal file
View File

@ -0,0 +1,17 @@
<html>
<head>
<title>
Demo Site
</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>
Welcome!
</h1>
<hr>
<p>
This website is using a CSS stylesheet.
</p>
</body>
</html>

26
website/nginx.conf Normal file
View File

@ -0,0 +1,26 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log /var/log/nginx/access.log;
keepalive_timeout 3000;
server {
listen 80;
root /var/lib/nginx/html;
index index.html index.htm;
server_name localhost;
client_max_body_size 32m;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/lib/nginx/html;
}
}
}

11
website/style.css Normal file
View File

@ -0,0 +1,11 @@
body {
background-color: #E&E2D2
}
h1 {
margin-left: 5%
font-weight: bold
}
p {
margin-left: 10%
}