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