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

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