mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-04-23 08:20:39 +03:00
add simple hs pattern
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
FROM nginx
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
@@ -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