First pass on whitney site

This commit is contained in:
Jake R 2024-05-17 23:38:09 -07:00
parent 999230645f
commit 236995fc57
8 changed files with 64 additions and 0 deletions

1
pws/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
docker-compose.yml

8
pws/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM nginx:alpine
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY website /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

8
pws/README.md Normal file
View File

@ -0,0 +1,8 @@
# PWS
This is the official landing webpage for Olomana.
### Run with Docker
`docker-compose build && docker-compose up -d`

View File

@ -0,0 +1,18 @@
version: '3'
networks:
[[TRAEFIK_NETWORK]]:
external: true
services:
web:
image: homepage
networks:
- [[TRAEFIK_NETWORK]]
build: .
labels:
- traefik.http.routers.homepage.rule=Host(`[[SITE_URL]]`)
- traefik.http.routers.homepage.tls=true
- traefik.http.routers.homepage.tls.certresolver=lets-encrypt
- traefik.http.services.homepage.loadbalancer.server.port=[[NGINX_INTERNAL_PORT]]
- traefik.port=[[NGINX_INTERNAL_PORT]]

15
pws/nginx/nginx.conf Normal file
View File

@ -0,0 +1,15 @@
events {
worker_connections 1024;
}
http {
server {
listen 81;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
}
}
}

13
pws/website/index.html Normal file
View File

@ -0,0 +1,13 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Webpage</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a simple HTML/CSS/JS webpage.</p>
<script src="script.js"></script>
</body>
</html>

1
pws/website/script.js Normal file
View File

@ -0,0 +1 @@
console.log("Hello, World!");

0
pws/website/styles.css Normal file
View File