-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.example.conf
More file actions
43 lines (32 loc) · 848 Bytes
/
nginx.example.conf
File metadata and controls
43 lines (32 loc) · 848 Bytes
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
35
36
37
38
39
40
41
# Basic server configuration.
# This is an insecure connection so should _never_ be used in a real production
# environment.
# To use, simple copy and paste into /etc/nginx/sites-available/default and
# restart nginx.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /home/www/xmas-elves/xmas-elves/build;
location / {
autoindex on;
alias /home/www/xmas-elves/xmas-elves/build/;
}
location /static/ {
}
location /game/ {
proxy_pass http://localhost:8000;
}
location /session/ {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /docs/ {
proxy_pass http://localhost:8000;
}
location /appstatic/ {
proxy_pass http://localhost:8000;
}
}