eaglercraft-1.5-replit/nginx.conf
2022-01-31 04:30:41 +00:00

34 lines
793 B
Nginx Configuration File

events {}
http {
server {
listen 8080;
listen [::]:8080;
listen 80;
listen [::]:80;
listen 8000;
listen [::]:8000;
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;
break;
}
location / {
index index.html;
try_files $uri $uri/ =404;
}
}
}