eaglercraft-1.5-replit/nginx.conf
2022-07-29 14:43:35 +00:00

37 lines
888 B
Nginx Configuration File

events {}
http {
server {
listen 8080;
listen [::]:8080;
listen 80;
listen [::]:80;
listen 8000;
listen [::]:8000;
listen 3000;
listen [::]:3000;
client_body_temp_path /tmp/nginx 1 2;
proxy_temp_path /tmp/nginx-proxy;
fastcgi_temp_path /tmp/nginx-fastcgi;
uwsgi_temp_path /tmp/nginx-uwsgi;
scgi_temp_path /tmp/nginx-scgi;
access_log /tmp/nginx/access.log;
error_log /tmp/nginx/error.log;
root /home/runner/eaglercraft-server/web;
location /server {
proxy_pass http://127.0.0.1:1/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
break;
}
location / {
index index.html;
try_files $uri $uri/ =404;
}
}
}