# gateway-service

### gateway-service

Reverse proxy service for calling internal services.

This proxy depends on services implementing grpc-gateway alongside the gRPC server.

### Usage

This proxy uses a yaml config file to map request paths to specific services.

You can also disable authentication for specific routes.

#### Example Config

```yaml
service_map:
  - name: upload-service
    port: 9000
    prefixes:
      - "/api/v1/media"
      - "/api/v1/feed"
  - name: deployment-service
    port: 9000
    prefixes:
      - "/api/v1/deployments"
```


---

# 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.mediamagic.dev/product-docs/services/gateway-service.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.
