refactor(v4.0.0-alpha): beginning of a new era

This commit is contained in:
Amruth Pillai
2023-11-05 12:31:42 +01:00
parent 0ba6a444e2
commit 22933bd412
505 changed files with 81829 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
events {
worker_connections 512;
}
http {
upstream app {
least_conn;
# List all of your `app` instances here to balance the load between them
server app_one:3000;
server app_two:3000;
}
server {
listen 80;
# This instructs nginx to forward the request to the next available `app` instance
# in case the current one throws an error or times out
proxy_next_upstream error timeout http_500 http_503 http_429 non_idempotent;
location / {
proxy_pass http://app;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_connect_timeout 1000ms;
proxy_send_timeout 1000ms;
proxy_read_timeout 1000ms;
send_timeout 1000ms;
}
}
}
+36
View File
@@ -0,0 +1,36 @@
events {
worker_connections 512;
}
http {
upstream chrome {
least_conn;
# List all of your `chrome` instances here to balance the load between them
server chrome_one:3000;
server chrome_two:3000;
}
server {
listen 80;
# This instructs nginx to forward the request to the next available `chrome` instance
# in case the current one throws an error or times out
proxy_next_upstream error timeout http_500 http_503 http_429 non_idempotent;
location / {
proxy_pass http://chrome;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_connect_timeout 1000ms;
proxy_send_timeout 1000ms;
proxy_read_timeout 1000ms;
send_timeout 1000ms;
}
}
}