> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/depuroi/enterprise-deployment/license-server.md).

# License Server（非推奨）

{% hint style="warning" %}
License Server は非推奨です。新しいデプロイでは [Secure Gateway](/roboflow/roboflow-jp/depuroi/enterprise-deployment/secure-gateway.md)、その後継で、モデルの重みとコンテナイメージのローカルキャッシュを追加します。
{% endhint %}

<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
```

この License Server を使用するよう Inference Server を設定するには、次に IP を渡します。 `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/depuroi/device-manager.md)、各デバイスの inference service の Configuration タブで License Server のアドレスを直接設定できます。

License Server のアドレスを入力すると、 `API_BASE_URL` は自動的に次に設定されます： `https://api.roboflow.com`. これにより、License Server にリクエストの転送先となる upstream が与えられ、両方が `LICENSE_SERVER` と `API_BASE_URL` 同じオンプレミスのアドレスを指してしまう誤設定（再帰的なプロキシループの原因）を防げます。

License Server フィールドをクリアしても削除されません。 `API_BASE_URL`そのため、既存の設定に影響はありません。
