Open Closed

About some url properties at appsettings.json #7862


User avatar
0
niall created
  • ABP Framework version: v8.2.2
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

There are a App.SelfUrl attribute at appsettings.json, This attribute does not affect the listening address of the service, so what is the function of this attribute?


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    If you search this keyword in your solution globally, You will find some code like:

    Configure<AppUrlOptions>(options =>
    {
        options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];
    });
    

    We will set the RootUrl of AppUrlOptions based on this property.

  • User Avatar
    0
    niall created

    Is this property must same as address of listening?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It should be the URL of your website.

    You may use localhost and a domain(external url) for your websites.

    eg: localhost, abp.io

    This value should uses the external URL(abp.io)

  • User Avatar
    0
    niall created

    I get it, Thanks ~

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on October 11, 2024, 07:13