File tree Expand file tree Collapse file tree 9 files changed +47
-3
lines changed Expand file tree Collapse file tree 9 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1+ ## アプリケーション設定
2+
3+ ### Web.config
4+ Web.config には、 次のようなアプリケーション設定があります。
5+
6+ ``` xml
7+ <configuration >
8+ <appSettings >
9+ <add key =" app:RequireHttps" value =" true" />
10+ <add key =" app:PermanentHttps" value =" false" />
11+ </appSettings >
12+ </configuration >
13+ ```
14+
15+ それぞれの説明は次の通りです。
16+ - ` app:RequireHttps `
17+ - HTTPS を必須とする場合は ` true ` を指定します。
18+ - HTTP でアクセスすると、HTTPS の URL にリダイレクトされます。
19+ - ` app:PermanentHttps `
20+ - リダイレクト時に HTTPS を永続化する場合は ` true ` を指定します。
21+ - すなわち、HTTP ステータス コードは ` true ` のとき 301、` false ` のとき 302 です。
22+
23+ ### Azure Web App
24+ Azure Web App では、[ アプリケーション設定] で値を設定します。
25+
26+ ![ ] ( images/AppSettings-Azure.png )
Original file line number Diff line number Diff line change 44GitHub にサインインして、このリポジトリを fork します。
55(Azure Web App と連携させるには、自身で所有しているリポジトリでなければならないためです。)
66
7+ ![ ] ( images/Deployment-1.jpg )
8+
79次に、Azure で Web App を作成します。
810
9- 作成が完了したら、[ デプロイ オプション] を構成します。
11+ ![ ] ( images/Deployment-2.jpg )
12+
13+ Web App の作成が完了したら、[ デプロイ オプション] を構成します。
1014ソースとして GitHub を選択すると、アカウント承認の画面が現れます。さらにリポジトリとブランチを選択します。
1115
12- 必要な設定はこれだけです。設定完了と同時に、ビルドおよびデプロイが開始されます。
16+ ![ ] ( images/Deployment-3.jpg )
17+
18+ 必要な設定はこれだけです。設定完了と同時に、ビルドおよびデプロイが開始されます。
19+ デプロイが完了すれば Web API が利用可能となります。
20+
21+ ![ ] ( images/Deployment-4.png )
22+
23+ 継続的デプロイが構成されるため、これ以降も fork したリポジトリを更新すれば、自動的にビルドおよびデプロイが実行されます。
1324
14- これ以降も、fork したリポジトリを更新すれば、自動的にビルドおよびデプロイが実行されます。
25+ ### アプリケーション設定
26+ - [ アプリケーション設定] ( AppSettings.md )
1527
1628### 参照
1729- [ Azure と GitHub で継続的デプロイ (2017)] ( https://sakapon.wordpress.com/2017/12/30/azure-github-2017/ )
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ PaaS を利用して、この Web API を簡単にホストすることができ
88
99- [ ホスティングについて] ( Hosting.md )
1010- [ Azure Web App にデプロイする手順] ( Deployment.md )
11+ - [ アプリケーション設定] ( AppSettings.md )
1112
1213## ランダム データの種類
1314- アルファベット
@@ -23,3 +24,8 @@ PaaS を利用して、この Web API を簡単にホストすることができ
2324- jQuery を利用したテストページ
2425
2526[ randomdata.azurewebsites.net] ( https://randomdata.azurewebsites.net/ ) は配置例です。
27+
28+ ## ヘルプページの多言語対応
29+ ブラウザーの翻訳機能で何とかなるでしょう。
30+
31+ ![ ] ( images/Help-Translation.gif )
You can’t perform that action at this time.
0 commit comments