aboutsummaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf27
1 files changed, 27 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..a0aceab
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,27 @@
+user nobody;
+
+events {}
+
+http {
+ server {
+ listen 2080 default_server;
+ server_name localhost;
+
+ location / {
+ proxy_pass http://localhost:3000;
+ }
+
+ location /api {
+ proxy_pass http://localhost:5000/;
+ }
+
+ location /socket.io {
+ # include proxy_params;
+ proxy_http_version 1.1;
+ proxy_buffering off;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "Upgrade";
+ proxy_pass http://localhost:5000/socket.io;
+ }
+ }
+}