mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
add simple hs pattern
This commit is contained in:
12
nginx/nginx.conf
Normal file
12
nginx/nginx.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
upstream loadbalancer {
|
||||
server api1:8080 weight=1;
|
||||
server api2:8080 weight=1;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://loadbalancer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user