Dev #11
@@ -29,7 +29,7 @@ builder.Services.AddDbContext<AppDbContext>(options =>
|
||||
npgsql =>
|
||||
{
|
||||
npgsql.EnableRetryOnFailure(3);
|
||||
npgsql.MigrationsAssembly("UniVerse.Infrastructure");
|
||||
npgsql.MigrationsAssembly("UniVerse.Infrastructure"); // Указывает EF Core, в какой сборке искать/хранить миграции.
|
||||
});
|
||||
});
|
||||
|
||||
@@ -50,7 +50,7 @@ builder.Services.AddAuthentication(options =>
|
||||
ValidIssuer = builder.Configuration["Jwt:Issuer"],
|
||||
ValidAudience = builder.Configuration["Jwt:Audience"],
|
||||
IssuerSigningKey = new SymmetricSecurityKey(
|
||||
Encoding.UTF8.GetBytes(builder.Configuration["Jwt:Secret"] ?? "default-dev-secret-key-change-in-production-32chars!!"))
|
||||
Encoding.UTF8.GetBytes(builder.Configuration["Jwt:Secret"]!))
|
||||
};
|
||||
});
|
||||
builder.Services.AddAuthorization();
|
||||
@@ -114,7 +114,7 @@ builder.Services.AddSwaggerGen(options =>
|
||||
{
|
||||
Title = "UniVerse API",
|
||||
Version = "v1",
|
||||
Description = "University schedule, reviews, and gamification platform"
|
||||
Description = "Universe"
|
||||
});
|
||||
|
||||
options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
|
||||
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
image: git.zetcraft.ru/serega404/universe/backend:main
|
||||
restart: always
|
||||
ports:
|
||||
- "8088:8080"
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||
|
||||
@@ -35,6 +35,7 @@ services:
|
||||
- ConnectionStrings:DefaultConnection=Host=db;Port=5432;Database=${POSTGRES_DATABASE:-universe};Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}
|
||||
networks:
|
||||
- backend
|
||||
- frontend
|
||||
|
||||
db:
|
||||
image: postgres:18-alpine
|
||||
@@ -56,6 +57,14 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
frontend:
|
||||
image: git.zetcraft.ru/serega404/universe/frontend:main
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80"
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
backend:
|
||||
@@ -54,3 +54,11 @@ services:
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "80"
|
||||
restart: unless-stopped
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vite App</title>
|
||||
<title>UniVerse</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user