commit 842884164d918f454e9ae918225b4aacd6d18bc5 Author: Elias Ahokas Date: Wed Nov 12 17:54:08 2025 +0200 move nginx diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..6fa5f28 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,16 @@ +name: deploy apps + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + deploy: + runs-on: vepsi + steps: + - name: deploy + run: | + cd /home/sirian/services/apps + git pull origin main + docker compose up -d --remove orphans \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0bd30cc --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# VPS apps stack + +Application services for vepsi. + +## services + +- nginx + +## data + +All data is stored in /var/lib/vepsi \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..d7b7764 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,32 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + server { + listen 80; + server_name sirian.me www.sirian.me; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ =404; + } + } +} + +stream { + upstream mc_backend { + server 172.16.0.2:25565; # Minecraft kotiserveri WG-tunnelissa + } + + server { + listen 25565; + proxy_pass mc_backend; + proxy_timeout 10m; + proxy_connect_timeout 30s; + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9dc8ff0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + nginx: + image: nginx:alpine + restart: unless-stopped + volumes: + - ./html:/usr/share/nginx/html:ro + - ./conf/nginx.conf:/etc/nginx/nginx.conf:ro + expose: + - "80" + ports: + - "25565:25565" \ No newline at end of file diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..57a397e --- /dev/null +++ b/html/index.html @@ -0,0 +1,19 @@ + + + + + + Isot jutut + + + + +

Tuulanhovin intranetti

+ +

Tervetuloa tuulanhovin intranettiin. Tosi isoi juttui tulossa

+ + Haxing + + + + diff --git a/html/redp.jpeg b/html/redp.jpeg new file mode 100644 index 0000000..a5d353c Binary files /dev/null and b/html/redp.jpeg differ