Results of 1 - 10 of about 28 for https (0.003 sec.)
- HTTPS について 15419
- HTTPS について HTTPSは単に「有効」か「無効」かで決まるものだと思いがちです。 しかし、それよりもはるかに複雑です。 Tip もし急いでいたり、HTTPSの仕組みについて気にしないのであれば、次のセクションに進み、さまざまなテクニックを使ってすべてをセッ
...トアップするステップ・バイ・ステップの手順をご覧ください。 利用者の視点から HTTPS の基本を学ぶ に当たっては、次のリソースをオススメします: https://howhttps.works/ . さて、 開発者の視点 から、HTTPSについて...考える際に念頭に置くべきことをいくつかみていきましょう: HTTPSの場合、 サーバ は 第三者 によって生成された**「証明書」を持つ**必要があります。 これらの証明書は「生成」されたものではなく、...について知りません 。IPアドレスについてのみ知っています。 要求された 特定のドメイン に関する情報は、 HTTPデータ に入ります。 HTTPS証明書 は、 特定のドメイン を「証明」しますが、プロトコルと暗号化はTCPレベルで行われ、どのドメインが扱われているかを 知る前... - https://man.mtool.work/fastapi/0.115/deployment/https/
- Configure Swagger UI 9962
- Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa
...Annotated [ str , Doc ( """ The URL to use to load the Swagger UI JavaScript. It is normally set to a CDN URL. """ ), ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url : Annotated [ str , Doc ( """ The URL to...use to load the Swagger UI CSS. It is normally set to a CDN URL. """ ), ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css" , swagger_favicon_url : Annotated [ str , Doc ( """ The URL of th...e favicon to use. It is normally shown in the browser tab. """ ), ] = "https://fastapi.tiangolo.com/img/favicon.png" , oauth2_redirect_url : Annotated [ Optional [ str ], Doc ( """ The OAuth2 redirec... - https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
- Custom Docs UI Static Assets (Self-Hosting) 9831
- Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav
...s yourself. Custom CDN for JavaScript and CSS Let's say that you want to use a different CDN , for example you want to use https://unpkg.com/ . This could be useful if for example you live in a country that restricts some URLs. Disable the automatic d...l , title = app . title + " - Swagger UI" , oauth2_redirect_url = app . swagger_ui_oauth2_redirect_url , swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.cs...edoc_html (): return get_redoc_html ( openapi_url = app . openapi_url , title = app . title + " - ReDoc" , redoc_js_url = "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" , ) @app . get ( "/users/ {username} " ) async def read_user ( usernam... - https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
- Behind a Proxy 9307
- Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration
...ave a stripped path prefix. In a case like that (without a stripped path prefix), the proxy would listen on something like https://myawesomeapp.com , and then if the browser goes to https://myawesomeapp.com/api/v1/app and your server (e.g. Uvicorn) li...ginning of the list. For example: Python 3.8+ from fastapi import FastAPI , Request app = FastAPI ( servers = [ { "url" : "https://stag.example.com" , "description" : "Staging environment" }, { "url" : "https://prod.example.com" , "description" : "Pro...enerate an OpenAPI schema like: { "openapi" : "3.1.0" , // More stuff here "servers" : [ { "url" : "/api/v1" }, { "url" : "https://stag.example.com" , "description" : "Staging environment" }, { "url" : "https://prod.example.com" , "description" : "Pro... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- CORS (オリジン間リソース共有) 9045
- CORS (オリジン間リソース共有) CORSまたは「オリジン間リソース共有」 は、ブラウザで実行されているフロントエンドにバックエンドと通信するJavaScriptコードがあり、そのバックエンドがフロントエンドとは異なる「オリジン」にある状況を指します。 オリジ
...ン オリジンはプロトコル ( http 、 https ) とドメイン ( myapp.com 、 localhost 、 localhost.tiangolo.com ) とポート ( 80 、 443 、 8080 ) の組み合わせです。 したが...って、以下はすべて異なるオリジンです: http://localhost https://localhost http://localhost:8080 すべて localhost であっても、異なるプロトコルやポートを使用するので、異なる「オリジン」で...FastAPI from fastapi.middleware.cors import CORSMiddleware app = FastAPI () origins = [ "http://localhost.tiangolo.com" , "https://localhost.tiangolo.com" , "http://localhost" , "http://localhost:8080" , ] app . add_middleware ( CORSMiddleware , allow... - https://man.mtool.work/fastapi/0.115/tutorial/cors/
- Extending OpenAPI 8914
- Extending OpenAPI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are some cases where you might need to modify the generated OpenAPI schema. In this section
...scription of the custom **OpenAPI** schema" , routes = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" } app . openapi_schema = openapi_schema return app . openapi_schema...scription of the custom **OpenAPI** schema" , routes = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" } app . openapi_schema = openapi_schema return app . openapi_schema...scription of the custom **OpenAPI** schema" , routes = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" } app . openapi_schema = openapi_schema return app . openapi_schema... - https://man.mtool.work/fastapi/0.115/how-to/extending-openapi/
- デプロイメントのコンセプト 8602
- デプロイメントのコンセプト FastAPI を用いたアプリケーションをデプロイするとき、もしくはどのようなタイプのWeb APIであっても、おそらく気になるコンセプトがいくつかあります。 それらを活用することでアプリケーションを デプロイするための最適な方法
...を見つけることができます。 重要なコンセプトのいくつかを紹介します: セキュリティ - HTTPS 起動時の実行 再起動 レプリケーション(実行中のプロセス数) メモリー 開始前の事前のステップ これらが デプロイメント にどのよ...ンセプトに基づくアイデア を確認しましょう。これらのコンセプトは、他のどのタイプのWeb APIにも当てはまります。? セキュリティ - HTTPS 前チャプターのHTTPSについて では、HTTPSがどのようにAPIを暗号化するのかについて学びました。 通常、アプリケーションサーバにと...rmination Proxy によって提供されることが一般的です。このプロキシは通信の暗号化を担当します。 さらにセキュアな通信において、HTTPS証明書の定期的な更新を行いますが、これはTLS Termination Proxyと同じコンポーネントが担当することもあれば、別のコンポーネントが... - https://man.mtool.work/fastapi/0.115/deployment/concepts/
- OpenAPI Callbacks 8471
- OpenAPI Callbacks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You could create an API with a path operation that could trigger a request to an external API cre
...And it will probably vary a lot from one app to the next. It could be just one or two lines of code, like: callback_url = "https://example.com/api/v1/invoices/events/" httpx . post ( callback_url , json = { "description" : "Invoice paid" , "paid" : Tr...{$callback_url}/invoices/{$request.body.id}" So, if your API user (the external developer) sends a request to your API to: https://yourapi.com/invoices/?callback_url=https://www.external.org/events with a JSON body of: { "id" : "2expen51ve" , "custome...ur API will process the invoice, and at some point later, send a callback request to the callback_url (the external API ): https://www.external.org/events/invoices/2expen51ve with a JSON body containing something like: { "description" : "Payment celeb... - https://man.mtool.work/fastapi/0.115/advanced/openapi-callbacks/
- コンテナ内のFastAPI - Docker 8471
- コンテナ内のFastAPI - Docker FastAPIアプリケーションをデプロイする場合、一般的なアプローチは Linuxコンテナ・イメージ をビルドすることです。 基本的には Docker を用いて行われます。生成されたコンテナ・イメージは、いくつかの方法のいずれかでデプ
...) の後ろでコンテナを動かしている場合は、 --proxy-headers オプションを追加します。 このオプションは、Uvicornにプロキシ経由でHTTPSで動作しているアプリケーションに対して、送信されるヘッダを信頼するよう指示します。 CMD [ "uvicorn" , "app.main:app" , "--pro...ーする方法があるということです。? これらの デプロイメントのコンセプト をコンテナの観点から見直してみましょう: セキュリティ - HTTPS 起動時の実行 再起動 レプリケーション(実行中のプロセス数) メモリ 開始前の事前ステップ HTTPS FastAPI アプリケーションの コ...ンテナ・イメージ (および後で実行中の コンテナ )だけに焦点を当てると、通常、HTTPSは別のツールを用いて 外部で 処理されます。 例えば Traefik のように、 HTTPS と 証明書 の 自動 取得を扱う別のコンテナである可能... - https://man.mtool.work/fastapi/0.115/deployment/docker/
- プロジェクト生成 - テンプレート 8340
- プロジェクト生成 - テンプレート プロジェクトジェネレーターは、初期設定、セキュリティ、データベース、初期APIエンドポイントなどの多くが含まれているため、プロジェクトの開始に利用できます。 プロジェクトジェネレーターは常に非常に意見が分かれる設
...および調整する必要があります。しかしきっと、プロジェクトの良い出発点となるでしょう。 フルスタック FastAPI PostgreSQL GitHub: https://github.com/tiangolo/full-stack-fastapi-postgresql フルスタック FastAPI PostgreSQL - 機能 完全な Docker インテグレーション...クエンド間をロードバランシング。同一ドメインに配置しパスで区切る、ただし、異なるコンテナで処理。 Traefik統合。Let's Encrypt HTTPS 証明書の自動生成を含む。 GitLab CI (継続的インテグレーション)。フロントエンドおよびバックエンドテストを含む。 フルスタック...FastAPI Couchbase GitHub: https://github.com/tiangolo/full-stack-fastapi-couchbase ⚠️ 警告 ⚠️ ゼロから新規プロジェクトを始める場合は、ここで代替案を確認し... - https://man.mtool.work/fastapi/0.115/project-generation/