# License Server

<figure><img src="/files/2d6560b1f76e6684855ac46716a9208d35a3cd59" alt=""><figcaption><p>Roboflow API के लिए proxy के रूप में license server का उपयोग करें।</p></figcaption></figure>

## पूर्वापेक्षाएँ

* Ubuntu 20.04+ या Debian 11+ चला रहा Linux server
* api.roboflow\.com और repo.roboflow\.com तक इंटरनेट पहुँच
* Static IP address या hostname
* Port 80 उपलब्ध (या custom port)
* Docker Engine 20.10+
* 200GB+ storage
* 4GB+ memory

## License Server का उपयोग करना

यदि आप Internet से Roboflow Inference Server को firewall करना चाहते हैं, तो आपको Roboflow License Server का उपयोग करना होगा, जो Roboflow API और आपके models के weights के लिए proxy की तरह काम करता है।

एक ऐसी machine पर जहाँ पहुँच हो `https://api.roboflow.com` और `https://repo.roboflow.com` (और port `80` जो आपके private network में चल रहे Inference Server के लिए खुला हो), License Server Docker container pull करें:

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

अपने Inference Server को इस License Server का उपयोग करने के लिए उसकी IP को `LICENSE_SERVER` environment variable में पास करके configure करें:

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

## Device Manager के माध्यम से कॉन्फ़िगर करना

यदि आप अपने devices को [Device Manager](/roboflow/roboflow-hi/deploy/device-manager.md)के माध्यम से manage करते हैं, तो आप प्रत्येक device की inference service के लिए Configuration tab में सीधे License Server address सेट कर सकते हैं।

जब आप License Server address दर्ज करते हैं, `API_BASE_URL` स्वचालित रूप से सेट किया जाता है `https://api.roboflow.com`. इससे License Server को requests proxy करने के लिए एक upstream मिलता है, और ऐसी misconfiguration को रोका जाता है जहाँ दोनों `LICENSE_SERVER` और `API_BASE_URL` एक ही on-prem address की ओर point करें (जिससे एक recursive proxy loop हो जाएगा)।

License Server field को clear करने से `API_BASE_URL`नहीं हटता, इसलिए मौजूदा configurations बाधित नहीं होतीं।


---

# 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-hi/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.
