# License Server

<figure><img src="/files/f852979cbfefcaa843c447b99149b07b3f2a9878" alt=""><figcaption><p>License Server を Roboflow API のプロキシとして使用します。</p></figcaption></figure>

## 前提条件

* Ubuntu 20.04+ または Debian 11+ を実行している Linux サーバー
* api.roboflow\.com と repo.roboflow\.com へのインターネットアクセス
* 静的 IP アドレスまたはホスト名
* ポート 80 が利用可能（またはカスタムポート）
* Docker Engine 20.10+
* 200GB+ のストレージ
* 4GB+ のメモリ

## License Server の使用

Roboflow Inference Server をインターネットからファイアウォールで隔離したい場合は、Roboflow API とモデルの重みのプロキシとして機能する Roboflow License Server を使用する必要があります。

へのアクセスがあるマシン上で `https://api.roboflow.com` および `https://repo.roboflow.com` （およびポート `80` をプライベートネットワーク内で動作している Inference Server に対して開放している場合）、License Server の Docker コンテナを取得します:

```
docker pull repo.roboflow.com/roboflow/license-server
```

そして実行します:

```
docker run -d --name license-server -p 80:80 --restart unless-stopped \
    repo.roboflow.com/roboflow/license-server:latest
```

次に、その IP を `LICENSE_SERVER` 環境変数に渡して、Inference Server がこの License Server を使用するよう設定します:

```
sudo docker run --net=host --env LICENSE_SERVER=10.0.1.1 roboflow/inference-server:cpu
```

## Device Manager 経由での設定

デバイスを [Device Manager](/roboflow/roboflow-jp/deploy/device-manager.md)で管理している場合、各デバイスの inference service の Configuration タブで License Server のアドレスを直接設定できます。

License Server のアドレスを入力すると、 `API_BASE_URL` は自動的に `https://api.roboflow.com`に設定されます。これにより、License Server にリクエストをプロキシする上流先が与えられ、さらに、両方が `LICENSE_SERVER` および `API_BASE_URL` を同じオンプレミスのアドレスに向けてしまう設定ミス（再帰的なプロキシループを引き起こします）を防ぎます。

License Server フィールドを空にしても `API_BASE_URL`は削除されないため、既存の設定は影響を受けません。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/deploy/enterprise-deployment/license-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
