1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

refactor(nginx): upstream section

This commit is contained in:
2022-11-19 04:24:31 +07:00
parent 06d3bb2baa
commit be274133e6

View File

@@ -1,3 +1,7 @@
upstream backend {
server app:3000;
}
server {
listen 80;
@@ -15,7 +19,7 @@ server {
# reverse proxy
location / {
proxy_pass http://app:3000$request_uri;
proxy_pass http://backend$request_uri;
proxy_set_header Host $host;
proxy_http_version 1.1;