Hi,
Could you share the Program code of the AdministrationService.HttpApi.Host project?
You just need to find the logging configuration code, and change it.
For example:
logConfiguration.MinimumLevel.Information()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.Enrich.WithProperty("Application", $"{applicationName}")
.WriteTo.Async(c => c.RollingFile("log-{Date}.txt")) // RollingFile
.WriteTo.Elasticsearch(
new ElasticsearchSinkOptions(new Uri(configuration["ElasticSearch:Url"]))
{
AutoRegisterTemplate = true,
AutoRegisterTemplateVersion = AutoRegisterTemplateVersion.ESv8,
IndexFormat = "MyProjectName-log-{0:yyyy.MM}"
})
.WriteTo.Async(c => c.Console());
Log.Logger = logConfiguration.CreateLogger();
https://github.com/serilog/serilog-sinks-rollingfile/blob/dev/README.md
It's weird, suite doesn't use HTTPS. Could you share the logs of the suite?
Windows:
%UserProfile%\.dotnet\tools\.store\volo.abp.suite
MAC:
~/.dotnet/tools/.store/volo.abp.suite
It's a problem of suite, It installed to the wrong project
Sure, can we start now?
Hi,
You can try something like this:
public class ApiNotAvailableHandler : DelegatingHandler, ITransientDependency
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
// check network or remote server is available
//return a cache or fake response
var fakeResponse = new HttpResponseMessage(HttpStatusCode.OK);
fakeResponse.Content = new StringContent("{}");
return Task.FromResult(fakeResponse);
}
}
PreConfigure<AbpHttpClientBuilderOptions>(options =>
{
options.ProxyClientBuildActions.Add((_, builder) =>
{
builder.AddHttpMessageHandler<ApiNotAvailableHandler>();
});
});
Hi,
You can try this:
ContainerStyleViewComponent.cs
public class ContainerStyleViewComponent : AbpViewComponent
{
public virtual IViewComponentResult Invoke()
{
return View("~/Components/ContainerStyle/Default.cshtml");
}
}
Default.cshtml
@using Microsoft.AspNetCore.Http
@inject IHttpContextAccessor HttpContext
@{
var cookieName = "lpx_containerWidth";
var cookieValue = HttpContext.HttpContext.Request.Cookies[cookieName];
}
@if(cookieValue == "boxed"){
<link rel="stylesheet" href="~/container-style.css">
}
container-style.css
#lpx-wrapper {
width: 1440px;
}
#lpx-wrapper.full {
width: 100% !important;
}
ModuleClass
Configure<AbpLayoutHookOptions>(options =>
{
options.Add(LayoutHooks.Head.First, typeof(ContainerStyleViewComponent));
});
Hi,
Could you share the full steps to reproduce the problem? thanks.
Hi,
You can update the environment.ts to to separate Auth and API URL
const yourIP = 'Your Local IP Address etc 192.168.1.64'; // See the docs https://docs.abp.io/en/abp/latest/Getting-Started-React-Native?Tiered=No
const authServerUrl = `http://qa.****.in:44322`;
const gatewayUrl = "....."; // your web gateway Url
const ENV = {
dev: {
apiUrl: gatewayUrl,
authUrl: authServerUrl,
appUrl: `exp://${yourIP}:19000`,
oAuthConfig: {
issuer: authServerUrl,
clientId: 'Angular',
clientSecret: '1q2w3e*',
scope: 'offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService ProductService ClinicService AppointmentService FormsService',
},
localization: {
defaultResourceName: 'Book',
},
},
......
And change all related codes for example:
Hi,
We have document about this: https://docs.abp.io/en/commercial/latest/startup-templates/application/azure-deployment/azure-deployment?UI=MVC&DB=EF&Tiered=No