Browse Source

Update Azure deployment documentation to clarify configuration steps and modify URL generation for openiddict.pfx

pull/23075/head
selmankoc 1 year ago
parent
commit
0a34d07c83
  1. 30
      docs/en/solution-templates/layered-web-application/deployment/azure-deployment/step2-configuration-application.md
  2. 24
      docs/en/solution-templates/layered-web-application/deployment/azure-deployment/step3-deployment-github-action.md

30
docs/en/solution-templates/layered-web-application/deployment/azure-deployment/step2-configuration-application.md

@ -13,7 +13,8 @@
- Modify the `ConnectionString` values in every location throughout your project. The `ConnectionString` values are stored in the `appsettings.json` files. - Modify the `ConnectionString` values in every location throughout your project. The `ConnectionString` values are stored in the `appsettings.json` files.
This includes the following files: * This includes the following files:
**./src/yourapp.DbMigrator/appsettings.json** **./src/yourapp.DbMigrator/appsettings.json**
{{ if Tiered == "No" }} {{ if Tiered == "No" }}
{{ if UI == "MVC" }} {{ if UI == "MVC" }}
@ -38,7 +39,7 @@
- Modify the **yourapp.Web** URL in every location throughout your project, especially within the **./src/yourapp.Web/appsettings.json** and **./src/yourapp.DbMigrator/appsettings.json** files, to match your Azure Web App Service URL. - Modify the **yourapp.Web** URL in every location throughout your project, especially within the **./src/yourapp.Web/appsettings.json** and **./src/yourapp.DbMigrator/appsettings.json** files, to match your Azure Web App Service URL.
This includes the following files: * This includes the following files:
**./src/yourapp.DbMigrator/appsettings.json** **./src/yourapp.DbMigrator/appsettings.json**
{{ if Tiered == "No" }} {{ if Tiered == "No" }}
{{ if UI == "MVC" }} {{ if UI == "MVC" }}
@ -68,10 +69,33 @@
"SelfUrl": "https://yourapp.azurewebsites.net" "SelfUrl": "https://yourapp.azurewebsites.net"
} }
``` ```
- Modify the **yourapp.ApiHost** URL in every location throughout your project.
* This includes the following files:
**./src/yourapp.HttpApi.Host/appsettings.json** , **./src/yourapp.Web/appsettings.json** , **./src/yourapp.DbMigrator/appsettings.json** and **./src/yourapp.AuthServer/appsettings.json**
```json
"App": {
"SelfUrl": "https://yourapp-apihost.azurewebsites.net"
}
```
- Modify the **yourapp.AuthServer** URL in every location throughout your project.
* This includes the following files:
**./src/yourapp.Web/appsettings.json** , **./src/yourapp.AuthServer/appsettings.json** , **./src/yourapp.DbMigrator/appsettings.json** and **./src/yourapp.HttpApi.Host/appsettings.json**
```json
"App": {
"SelfUrl": "https://yourapp-authserver.azurewebsites.net"
}
```
- Modify the **Redis__Configuration** URL in every location throughout your project. - Modify the **Redis__Configuration** URL in every location throughout your project.
This includes the following files: * This includes the following files:
**./src/yourapp.Blazor/appsettings.json** , **./src/yourapp.AuthServer/appsettings.json** , **./src/yourapp.DbMigrator/appsettings.json** and **./src/yourapp.HttpApi.Host/appsettings.json** **./src/yourapp.Blazor/appsettings.json** , **./src/yourapp.AuthServer/appsettings.json** , **./src/yourapp.DbMigrator/appsettings.json** and **./src/yourapp.HttpApi.Host/appsettings.json**

24
docs/en/solution-templates/layered-web-application/deployment/azure-deployment/step3-deployment-github-action.md

@ -70,8 +70,8 @@ jobs:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost
working-directory: ./aspnet-core/src/Demo.AzureAppsAngular.HttpApi.Host # Replace with your project name working-directory: ./aspnet-core/src/Demo.AzureAppsAngular.HttpApi.Host # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/apihost/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/apihost/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: Upload artifact for apihost - name: Upload artifact for apihost
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -170,8 +170,8 @@ jobs:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost
working-directory: ./src/demo.BlazorNonTierEfCore.HttpApi.Host # Replace with your project name working-directory: ./src/demo.BlazorNonTierEfCore.HttpApi.Host # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/apihost/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/apihost/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: Upload artifact for apihost - name: Upload artifact for apihost
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -360,8 +360,8 @@ jobs:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver
working-directory: ./src/blazorservertierdemo.AuthServer # Replace with your project name working-directory: ./src/blazorservertierdemo.AuthServer # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: dotnet publish apihost - name: dotnet publish apihost
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost
@ -584,8 +584,8 @@ jobs:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver
working-directory: ./src/BlzWapp.AuthServer # Replace with your project name working-directory: ./src/BlzWapp.AuthServer # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: dotnet publish apihost - name: dotnet publish apihost
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost
@ -718,8 +718,8 @@ build:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
working-directory: ./src/yourapp.Web # Replace with your project name working-directory: ./src/yourapp.Web # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/myapp/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/myapp/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: Upload artifact for deployment job - name: Upload artifact for deployment job
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -798,8 +798,8 @@ jobs:
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/authserver
working-directory: ./src/mvctierdemo.AuthServer # Replace with your project name working-directory: ./src/mvctierdemo.AuthServer # Replace with your project name
- name: Generate authserver.pfx - name: Generate openiddict.pfx
run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password run: dotnet dev-certs https -v -ep ${{env.DOTNET_ROOT}}/authserver/openiddict.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED # Replace with your password
- name: dotnet publish apihost - name: dotnet publish apihost
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/apihost

Loading…
Cancel
Save