diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-17 20:03:00 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-17 20:03:00 +0100 |
commit | 311e06651412edd19b450ce8efcd11ae83c0f108 (patch) | |
tree | a89c9ea1b7acc93534267ac125272895f8c46bf1 | |
parent | 72d8c0178a8b21a8f0d19da9689a5bac30ccbcbb (diff) |
added nginx config
-rw-r--r-- | components/gameBar.tsx | 2 | ||||
-rw-r--r-- | nginx.conf | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/components/gameBar.tsx b/components/gameBar.tsx index 53eda88..daa723e 100644 --- a/components/gameBar.tsx +++ b/components/gameBar.tsx @@ -56,7 +56,7 @@ export function GameBar() { <span style={{ color: "var(--text)", fontSize: 20, - opacity: .75 + opacity: .75 - .75 }}>0-0</span> </div> <div style={{ ...GameBarAlignStyle, float: "right" }}> 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; + } + } +} |