Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Configuration (0.32 sec)

  1. docs/zh/docs/advanced/behind-a-proxy.md

    这个文件配置 Traefik 使用路径前缀 `/api/v1`。
    
    然后,它把请求重定位到运行在 `http://127.0.0.1:8000` 上的 Uvicorn。
    
    现在,启动 Traefik:
    
    <div class="termy">
    
    ```console
    $ ./traefik --configFile=traefik.toml
    
    INFO[0000] Configuration loaded from file: /home/user/awesomeapi/traefik.toml
    ```
    
    </div>
    
    接下来,使用 Uvicorn 启动应用,并使用 `--root-path` 选项:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/behind-a-proxy.md

    # Behind a Proxy
    
    In some situations, you might need to use a **proxy** server like Traefik or Nginx with a configuration that adds an extra path prefix that is not seen by your application.
    
    In these cases you can use `root_path` to configure your application.
    
    The `root_path` is a mechanism provided by the ASGI specification (that FastAPI is built on, through Starlette).
    
    The `root_path` is used to handle these specific cases.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  3. docs/de/docs/advanced/behind-a-proxy.md

    # Hinter einem Proxy
    
    In manchen Situationen müssen Sie möglicherweise einen **Proxy**-Server wie Traefik oder Nginx verwenden, mit einer Konfiguration, die ein zusätzliches Pfadpräfix hinzufügt, das von Ihrer Anwendung nicht gesehen wird.
    
    In diesen Fällen können Sie `root_path` verwenden, um Ihre Anwendung zu konfigurieren.
    
    Der `root_path` („Wurzelpfad“) ist ein Mechanismus, der von der ASGI-Spezifikation bereitgestellt wird (auf der FastAPI via Starlette aufbaut).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:07 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/behind-a-proxy.md

    &amp; ⤴️ ⚫️ 🔜 ❎ 🚮 📨 👆 Uvicorn 🏃‍♂ 🔛 `http://127.0.0.1:8000`.
    
    🔜 ▶️ Traefik:
    
    <div class="termy">
    
    ```console
    $ ./traefik --configFile=traefik.toml
    
    INFO[0000] Configuration loaded from file: /home/user/awesomeapi/traefik.toml
    ```
    
    </div>
    
    &amp; 🔜 ▶️ 👆 📱 ⏮️ Uvicorn, ⚙️ `--root-path` 🎛:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top