31 lines
609 B
Nginx Configuration File
31 lines
609 B
Nginx Configuration File
daemon off;
|
|
error_log /dev/stdout info;
|
|
events {
|
|
}
|
|
|
|
|
|
http {
|
|
include mime.types;
|
|
charset utf-8;
|
|
access_log /dev/stdout;
|
|
|
|
server {
|
|
server_name localhost;
|
|
listen 0.0.0.0:4242;
|
|
|
|
location / {
|
|
disable_symlinks off;
|
|
root /public;
|
|
}
|
|
|
|
location /ws {
|
|
proxy_pass http://localhost:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
}
|
|
|
|
}
|