diff --git a/nginx.conf.d/admin.conf b/nginx.conf.d/admin.conf new file mode 100644 index 0000000..d92f2a5 --- /dev/null +++ b/nginx.conf.d/admin.conf @@ -0,0 +1,11 @@ +location /admin { + proxy_pass http://127.0.0.1:3000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cache_bypass $http_upgrade; +}