Activities of "maliming"

hi

The permission can't depends on a permission. It only can depends a feature or global feature.

  • A permission can be automatically disabled if a Feature was disabled.
  • A permission can be automatically disabled if a Global Feature was disabled.

Thanks.

hi

It works on my side.

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var env = context.GetEnvironment();
    var app = context.GetApplicationBuilder();

    // Configure the HTTP request pipeline.
    if (env.IsDevelopment())
    {
        app.UseWebAssemblyDebugging();
    }
    else
    {
        // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
        app.UseHsts();
    }

    app.UseHttpsRedirection();
    app.UseRouting();
    
    app.Use(async (context, next) =>
    {
        if (context.Request.Path.Value != null &&
            context.Request.Path.Value.StartsWith("/appsettings", StringComparison.OrdinalIgnoreCase) &&
            context.Request.Path.Value.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
        {
            // Set endpoint to null so the static files middleware will handle the request.
            context.SetEndpoint(null);
        }
        await next(context);
    });

    app.UseStaticFilesForPatterns("appsettings*.json");

    app.MapAbpStaticAssets();
    app.UseAntiforgery();

    app.UseConfiguredEndpoints(builder =>
    {
        builder.MapRazorComponents<App>()
            .AddInteractiveWebAssemblyRenderMode()
            .AddAdditionalAssemblies(WebAppAdditionalAssembliesHelper.GetAssemblies<AbpSolution6BlazorClientModule>());
    });
}
services:
  abpsolution6-blazor:
    image: abpsolution6-blazor:latest
    container_name: abpsolution6-blazor
    build:
      context: ../../
      dockerfile: src/AbpSolution6.Blazor/Dockerfile.local
    environment:
      - ASPNETCORE_URLS=https://+:8081;
      - Kestrel__Certificates__Default__Path=/app/certs/localhost.pfx
      - Kestrel__Certificates__Default__Password=d55cb215-fa18-408d-80c9-e21ca6061c84
    ports:
      - "44336:8081"
    depends_on:
      - abpsolution6-api
    restart: on-failure
    volumes:
      - ./appsettings.json:/app/wwwroot/appsettings.json
      - ./certs:/app/certs
    networks:
      - abp-network

  abpsolution6-api:
    image: abpsolution6-api:latest
    container_name: abpsolution6-api
    hostname: abpsolution6-api
    build:
      context: ../../
      dockerfile: src/AbpSolution6.HttpApi.Host/Dockerfile.local
    environment:
      - ASPNETCORE_URLS=https://+:8081;
      - Kestrel__Certificates__Default__Path=/app/certs/localhost.pfx
      - Kestrel__Certificates__Default__Password=d55cb215-fa18-408d-80c9-e21ca6061c84
      - App__SelfUrl=https://localhost:44349
      - App__CorsOrigins=http://localhost:44336
      - App__HealthCheckUrl=http://abpsolution6-api:8080/health-status
      - AuthServer__RequireHttpsMetadata=false
      - AuthServer__Authority=https://localhost:44366
      - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=AbpSolution6;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True;
    ports:
      - "44366:8081"
    depends_on:
      sql-server:
        condition: service_healthy
    restart: on-failure    
    volumes:
      - ./certs:/app/certs
    networks:
      - abp-network
  


  db-migrator:
    image: abpsolution6-db-migrator:latest
    container_name: db-migrator
    build:
      context: ../../
      dockerfile: src/AbpSolution6.DbMigrator/Dockerfile.local
    environment:
      - OpenIddict__Applications__AbpSolution6_Blazor__RootUrl=http://localhost:44336
      - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=AbpSolution6;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True;
    restart: on-failure
    depends_on:
      sql-server:
        condition: service_healthy
    networks:
      - abp-network    
  
  sql-server:
    container_name: sql-server
    image: mcr.microsoft.com/azure-sql-edge:1.0.7
    ports:
      - "1434:1433"
    environment:
      SA_PASSWORD: "myPassw0rd"
      ACCEPT_EULA: "Y"
    volumes:
      - sqldata:/var/opt/mssql
    networks:
      - abp-network
    healthcheck:
      test: /opt/mssql-tools/bin/sqlcmd -S sql-server -U sa -P "myPassw0rd" -Q "SELECT 1" -C -b -o /dev/null
      interval: 10s
      timeout: 3s
      retries: 10
      start_period: 10s

volumes:
  sqldata:
    name: abpsolution6_sqldata
networks:
  abp-network:
    name: abpsolution6-network
    driver: bridge

Great

ok, I will test it asap.

Thanks.

ok, I will test it in Docker.

Thanks.

hi

You can add a custom JavaScript file to the wwwroot folder and add it to typeof(Volo.Abp.LanguageManagement.Pages.LanguageManagement.Texts.IndexModel).FullName bundle

See https://abp.io/docs/latest/framework/ui/mvc-razor-pages/bundling-minification#configuring-an-existing-bundle

Thanks.

hi

The final question is: In Docker, when you change the appsettings.json under wwwroot for Blazor WASM, the browser can't get the latest changes, right?

Thanks.

ok, 👍

按照设计, 要使用静态代理. 动态代理需要项目依赖问题, 分层结构和认证方式不支持

hi

Can you share a demo project?

I will check it in my local Docker Desktop

liming.ma@volosoft.com

Thanks

Showing 91 to 100 of 11082 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41