2 Commits

Author SHA1 Message Date
d3m0k1d 5214f183ff fix secrets
release-agent / release (push) Failing after 3m12s
2026-04-05 11:42:29 +03:00
d3m0k1d 56db916f29 .env 2026-04-05 11:34:25 +03:00
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ jobs:
args: release --clean
workdir: agent
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
+3
View File
@@ -0,0 +1,3 @@
# Backend API URL. По умолчанию "/api/v1" (через nginx proxy).
# Для локальной разработки: "http://localhost:8080/api/v1"
VITE_API_BASE_URL=/api/v1
+3
View File
@@ -2,6 +2,9 @@ FROM node:25-alpine3.23 AS builder
WORKDIR /app
ARG VITE_API_BASE_URL=/api/v1
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
+2 -4
View File
@@ -9,15 +9,13 @@ server {
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_pass http://backend:8080;
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;
}
+1 -1
View File
@@ -16,7 +16,7 @@ class ApiClient {
constructor() {
this.axiosInstance = axios.create({
baseURL: "http://213.165.213.170:8080/api/v1",
baseURL: import.meta.env.VITE_API_BASE_URL || "/api/v1",
timeout: 10000,
headers: {
"Content-Type": "application/json",