add http website

This commit is contained in:
Matthew Tran 2023-09-11 00:16:44 +00:00
parent 201d3967d1
commit 3e5efaf711
35 changed files with 31 additions and 9 deletions

View File

@ -3,7 +3,7 @@
Stuff that's deployed on [matthewtran.com](matthewtran.com). Tested on Ubuntu Server 22.04.3 LTS. Currently running the following services. Stuff that's deployed on [matthewtran.com](matthewtran.com). Tested on Ubuntu Server 22.04.3 LTS. Currently running the following services.
- website - website
- gitea (`git.matthewtran.com`) - gitea ([git.matthewtran.com](git.matthewtran.com))
- monerod - monerod
- p2pool (`xmrig -o matthewtran.com:3333`) - p2pool (`xmrig -o matthewtran.com:3333`)
- minecraft - minecraft

View File

@ -2,12 +2,10 @@ services:
website: website:
restart: always restart: always
build: website/. build: website/.
# entrypoint: ["/bin/sh", "/home/matt/entry.sh"] entrypoint: ["/bin/sh", "/root/entry.sh"]
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
# volumes:
# - ./monerod/.bitmonero:/home/matt/.bitmonero
monerod: monerod:
restart: always restart: always
build: monerod/. build: monerod/.

View File

@ -1,10 +1,18 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update && apt-get upgrade RUN apt-get update && apt-get upgrade
# RUN apt-get install -y wget RUN apt-get install -y git nginx
RUN useradd -m matt RUN rm /etc/nginx/sites-enabled/default
USER matt RUN ln -sf /dev/stdout /var/log/nginx/access.log
WORKDIR /home/matt RUN ln -sf /dev/stderr /var/log/nginx/error.log
# TODO everything else COPY matthewtran.com /etc/nginx/sites-available
RUN ln -s /etc/nginx/sites-available/matthewtran.com /etc/nginx/sites-enabled/matthewtran.com
COPY html /var/www/matthewtran.com/html
WORKDIR /root
COPY entry.sh ./
# TODO gitea
# TODO disable registration except admin

3
website/entry.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
nginx -g 'daemon off;'

View File

Before

Width:  |  Height:  |  Size: 365 KiB

After

Width:  |  Height:  |  Size: 365 KiB

View File

Before

Width:  |  Height:  |  Size: 381 KiB

After

Width:  |  Height:  |  Size: 381 KiB

View File

Before

Width:  |  Height:  |  Size: 401 KiB

After

Width:  |  Height:  |  Size: 401 KiB

View File

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 526 KiB

View File

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 216 KiB

View File

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 349 KiB

View File

Before

Width:  |  Height:  |  Size: 553 KiB

After

Width:  |  Height:  |  Size: 553 KiB

View File

Before

Width:  |  Height:  |  Size: 414 KiB

After

Width:  |  Height:  |  Size: 414 KiB

View File

Before

Width:  |  Height:  |  Size: 366 KiB

After

Width:  |  Height:  |  Size: 366 KiB

View File

Before

Width:  |  Height:  |  Size: 226 KiB

After

Width:  |  Height:  |  Size: 226 KiB

View File

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB

View File

Before

Width:  |  Height:  |  Size: 303 KiB

After

Width:  |  Height:  |  Size: 303 KiB

View File

Before

Width:  |  Height:  |  Size: 354 KiB

After

Width:  |  Height:  |  Size: 354 KiB

View File

Before

Width:  |  Height:  |  Size: 480 KiB

After

Width:  |  Height:  |  Size: 480 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 769 B

After

Width:  |  Height:  |  Size: 769 B

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

13
website/matthewtran.com Normal file
View File

@ -0,0 +1,13 @@
server {
listen 80;
listen [::]:80;
server_name matthewtran.com www.matthewtran.com;
root /var/www/matthewtran.com/html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}