move nginx
Some checks failed
deploy apps / deploy (push) Has been cancelled

This commit is contained in:
Elias Ahokas
2025-11-12 17:54:08 +02:00
commit 842884164d
6 changed files with 89 additions and 0 deletions

View File

@@ -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

11
README.md Normal file
View File

@@ -0,0 +1,11 @@
# VPS apps stack
Application services for vepsi.
## services
- nginx
## data
All data is stored in /var/lib/vepsi

32
conf/nginx.conf Normal file
View File

@@ -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;
}
}

11
docker-compose.yml Normal file
View File

@@ -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"

19
html/index.html Normal file
View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Isot jutut</title>
</head>
<body>
<h1>Tuulanhovin intranetti</h1>
<p>Tervetuloa tuulanhovin intranettiin. Tosi <strong>isoi</strong> juttui tulossa</p>
<img src="redp.jpeg" alt="Haxing" style="max-width: 350px; height: auto;">
</body>
</html>

BIN
html/redp.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB