> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/vi/bat-dau/pro-infrastructure.md).

# Hạ tầng Pro

#### Dịch vụ

Cơ sở hạ tầng Overleaf Pro bao gồm bốn dịch vụ chính: `sharelatex`, `git-bridge` (tùy chọn), `mongo` và `redis`. Dịch vụ `sharelatex` dịch vụ, chạy ứng dụng Server Pro chính, phụ thuộc vào `mongo` và `redis` các dịch vụ cho cơ sở dữ liệu và các chức năng lưu đệm/thời gian thực của nó, và `git-bridge` để xử lý [tích hợp Git](/on-premises/vi/cau-hinh/overleaf-toolkit/git-integration.md) (tùy chọn). Cổng duy nhất được công bố trên máy chủ là cổng 80, mà là do `sharelatex` container.

Server Pro cũng hỗ trợ tùy chọn [lưu trữ tương thích S3](/on-premises/vi/cau-hinh/overleaf-toolkit/s3.md) cho các tệp dự án và toàn bộ lịch sử dự án, cũng như có thể ủy quyền truy cập đến [trang tài liệu Overleafarrow-up-right](https://www.overleaf.com/learn). Để biết thêm thông tin, hãy xem hướng dẫn của chúng tôi về [Thêm trợ giúp người dùng LaTeX](broken://pages/fb732465c55e2205d553531a7e6c2f2caf0d1410) các trang.

{% hint style="info" %}
Nếu cần, MongoDB và Redis có thể được tách ra bên ngoài bằng các biến môi trường để trỏ tới các dịch vụ bên ngoài. Để biết thêm thông tin, xem [Cấu hình Overleaf](broken://pages/556eaeb4dddcb30f8e61eab36f50573c660f1752) nếu bạn đang sử dụng Docker Compose và [Cài đặt Toolkit](broken://pages/c54f514c1c4d10f618d65a5964b443d782e4b4e2) nếu sử dụng Overleaf Toolkit.
{% endhint %}

#### Biên dịch

Đối với [Biên dịch trong môi trường sandbox](broken://pages/3957e59109fbce4b81a0898f76608b14dc1642c2), `sharelatex` container sẽ điều phối việc tạo các container mới để xử lý việc biên dịch dự án; nó thực hiện điều này thông qua socket Docker trên máy chủ. Bạn có thể đọc thêm về trình soạn thảo và quy trình biên dịch/lưu đệm đầu cuối [tại đây](/on-premises/vi/bat-dau/microservices.md#editor-and-compile-process).

#### Mạng

Việc giao tiếp giữa các container được thực hiện thông qua phân giải DNS nội bộ của Docker qua một mạng cầu nối chuyên dụng, và không có tường lửa nào được bật. Theo mặc định, các dịch vụ trên sử dụng các cổng chuẩn tương ứng của chúng nhưng có thể cấu hình bằng các biến môi trường.  `sharelatex` container sử dụng cổng 80 để truy cập web bên ngoài (do Nginx phục vụ),  `mongo` container sử dụng cổng 27017 và `redis` sử dụng cổng 6379.

Đối với khách hàng sử dụng giải pháp được quản lý của chúng tôi [Overleaf Toolkitarrow-up-right](https://github.com/overleaf/toolkit), bạn có thể tùy chọn [bật proxy TLS](broken://pages/e3b0906d175a3b71c1f12e535cdaa5fe4e10ec61) để kết thúc các kết nối HTTPS bằng Nginx thông qua một biến môi trường. Ngoài ra, bạn có thể sử dụng proxy TLS hiện có của mình.

{% hint style="info" %}
Bạn có thể xem sơ đồ giải thích luồng yêu cầu [tại đây](broken://pages/e3b0906d175a3b71c1f12e535cdaa5fe4e10ec61).
{% endhint %}

#### Tóm tắt

* Bên ngoài mạng Docker, chỉ cổng 80 là có thể truy cập và được liên kết với Nginx. **Lưu ý:** Trường `sharelatex` container chạy nhiều [dịch vụarrow-up-right](https://github.com/overleaf/overleaf/tree/main/services) giao tiếp với nhau qua HTTP. Tuy nhiên, các cổng này **không** có thể truy cập từ bên ngoài mạng Docker.
* Bên trong mạng Docker, các dịch vụ Overleaf, MongoDB, Redis và Git Bridge có thể giao tiếp tự do với nhau.
* Bên trong [Biên dịch trong môi trường sandbox](broken://pages/3957e59109fbce4b81a0898f76608b14dc1642c2) các container, không có mạng khả dụng.

Để xem các chủ đề liên quan, xem:

* [Vi dịch vụ](/on-premises/vi/bat-dau/microservices.md)
* [Bộ công cụ Overleaf là gì?](/on-premises/vi/bat-dau/what-is-the-overleaf-toolkit.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/vi/bat-dau/pro-infrastructure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
