> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/autify-university/advanced/tests-on-private-environments/configuration-when-using-a-proxy-server.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Proxyサーバーを利用する場合の設定

## Proxyサーバーを利用する際に指定するオプション

Proxyサーバーを利用していても、Autify Connect起動時にオプションを指定することで利用が可能です。

### Autify Connect Client と Autify Connect Server間の通信でProxyサーバーを利用する場合

Autify Connect Clientを起動するサーバーは、Autify Connect Serverへ通信可能な必要があります。 Autify Connect ServerはAutifyで提供しているサーバーとなり、パブリックネットワーク上に存在しています。

Autify Connect Clientを起動するサーバーが、Autify Connect Serverへのアクセスで、Proxyサーバーを経由する場合は、以下のオプションを使用してください。

```
--tunnel-proxy プロキシサーバーのアドレス(例: http://host:port)
```

#### Proxyサーバーが送信リクエストのHostヘッダの値のDNS解決に失敗している場合

お使いのProxyサーバーが、Autify Connect ClientからAutify Connect Serverに対する送信リクエストのHostヘッダの値をDNS解決しようとして失敗した場合、Autify Connectの起動に失敗します。

場合によっては、以下のようなエラーが発生します。

```
Your requested host "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.connect.autify.com" could not be resolved by DNS.
```

このようなケースでは、以下のオプションを使用することで問題が解決する場合があります。

```
--experimental-x-host-header
```

#### トンネル接続を確立するためのSSL証明書検証を無効にする必要がある場合

トンネル接続を確立するためのSSL証明書検証を無効にする必要がある場合は、以下のオプションを使用することで無効化できます。

```
--experimental-no-ssl-verify
```

#### オプションを利用したコマンド例

全てのオプションを使用した際のコマンド例は以下となります。

```
autifyconnect --experimental-no-ssl-verify --experimental-x-host-header --tunnel-proxy http://host:port --key your-key-here
```

### Autify Connect Clientとテスト対象のアプリケーション間の通信でProxyサーバーを利用する場合

Autify Connect Clientを起動するサーバーは、テスト対象のアプリケーションへ通信可能な必要があります。

Autify Connect Clientを起動するサーバーが、テスト対象のアプリケーションへのアクセスでProxyサーバーを経由する場合には、以下のオプションを使用してください。

```
--sut-proxy プロキシサーバーのアドレス(例: http://host:port)
```

### オプションの併用

`--tunnel-proxy`と`--sut-proxy`オプションは併用可能です。両方の通信でProxyサーバーを経由する場合は、2つのオプションを設定してください。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-61e7fd57e99a306fe16bb21476c164e82f75b3d7%2Fsut-tunnel-proxy-image.png?alt=media)

## ProxyサーバーにBasic認証が設定されている場合

ProxyサーバーのBasic認証情報は、ワークスペースのBasic認証設定から設定可能です。 詳しくは [**Basic認証**](https://help.autify.com/nocode-web/autify-university/advanced/authentication/basic-authentication.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/autify-university/advanced/tests-on-private-environments/configuration-when-using-a-proxy-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
