Добавил авторизацию в приложение, сделал регистарцию, добавил мидлы
This commit is contained in:
Deforest6342 committed 2026-05-07 17:57:49 +03:00
1 parent 7c3b588b26
commit 87ec792fd5
8 files changed
+275 -64

No files matched your search

+17
View File
@@ -13,9 +13,26 @@ FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY <<EOF /etc/nginx/conf.d/default.conf
server {
listen 89;
location /register {
proxy_pass http://backend:8090;
proxy_set_header Host \$host;
}
location /login {
proxy_pass http://backend:8090;
proxy_set_header Host \$host;
}
location /api {
proxy_pass http://backend:8090;
}
# Сама статика React
location / {
root /usr/share/nginx/html;
index index.html;