-
Notifications
You must be signed in to change notification settings - Fork 27
/
nginx.conf
34 lines (31 loc) · 793 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
}
}
}