Compare commits
7 Commits
2b1a229623
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ac93279fb | ||
|
|
764e625631 | ||
|
|
7c1c1c6824 | ||
|
|
ff72c9cd87 | ||
|
|
f7d00555c1 | ||
|
|
6849892075 | ||
|
|
820e2d31a9 |
@@ -1,5 +1,6 @@
|
|||||||
using NeDvachAPI.BufferControllers;
|
using NeDvachAPI.BufferControllers;
|
||||||
|
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
@@ -10,9 +11,10 @@ builder.Services.AddCors(setup =>
|
|||||||
{
|
{
|
||||||
setup.AddDefaultPolicy(policyBuilder =>
|
setup.AddDefaultPolicy(policyBuilder =>
|
||||||
{
|
{
|
||||||
|
policyBuilder.SetIsOriginAllowed(origin => new Uri(origin).Host == "localhost");
|
||||||
|
|
||||||
policyBuilder.WithOrigins("http://www.vdk2ch.ru:4200").WithMethods("GET", "POST").WithHeaders("*");
|
//policyBuilder.WithOrigins("http://www.vdk2ch.ru:4200").WithMethods("GET", "POST").WithHeaders("*");
|
||||||
policyBuilder.WithOrigins("https://www.vdk2ch.ru/").WithMethods("GET", "POST").WithHeaders("*");
|
policyBuilder.WithOrigins("https://www.vdk2ch.ru").WithMethods("GET", "POST").WithHeaders("*");
|
||||||
//policyBuilder.WithOrigins("http://localhost:4200").WithMethods("GET", "POST").WithHeaders("*");
|
//policyBuilder.WithOrigins("http://localhost:4200").WithMethods("GET", "POST").WithHeaders("*");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "5000:80"
|
- "5000:80"
|
||||||
logging:
|
# logging:
|
||||||
driver: "gelf"
|
# driver: "gelf"
|
||||||
options:
|
# options:
|
||||||
gelf-address: "udp://graylog.vdk2ch.ru:12201"
|
# gelf-address: "udp://graylog.vdk2ch.ru:12201"
|
||||||
tag: "backend-logs"
|
# tag: "backend-logs"
|
||||||
|
|||||||
Reference in New Issue
Block a user