Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tabs instead of headers do split http/s #1202

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/maintain/hornet/1.2/docs/how_tos/using_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ keywords:
- how to
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Install Hornet using Docker

![Hornet Node using Docker](/img/banner/banner_hornet_using_docker.png)
Expand Down Expand Up @@ -62,7 +65,8 @@ tar -zxf node-docker-setup_chrysalis-v1.0.0-rc.16.tar.gz

You can configure your node to either use HTTP or HTTPS. For publicly exposed nodes we heavily recommend using HTTPS.

#### 1.1 HTTPS
<Tabs queryString="protocol">
<TabItem value="https" label="HTTPS">

Create a file named `.env` add the following to the file:

Expand All @@ -77,7 +81,8 @@ NODE_HOST=node.your-domain.com
- Replace `[email protected]` with the e-mail used for issuing a [Let's Encrypt](https://letsencrypt.org) SSL certificate.
- Replace `node.your-domain.com` with the domain pointing to your public IP address as described in the [requirements](#requirements).

#### 1.2 HTTP
</TabItem>
<TabItem value="http" label="HTTP">

By default this setup will expose the Traefik reverse proxy on the default HTTP port `80`.
If you want to change the port to a different value you can create a file named `.env` and add the following to e.g. expose it over port `9000`:
Expand All @@ -86,6 +91,9 @@ If you want to change the port to a different value you can create a file named
HTTP_PORT=9000
```

</TabItem>
</Tabs>

### 2. Setup neighbors

Add your Hornet neighbor addresses to the `peering.json` file.
Expand Down
16 changes: 12 additions & 4 deletions docs/maintain/hornet/2.0-rc.6/docs/how_tos/using_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ keywords:
- how to
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Install HORNET using Docker

![HORNET Node using Docker](/img/banner/banner_hornet_using_docker.png)
Expand Down Expand Up @@ -65,8 +68,8 @@ Once you have completed all the installation [requirements](#requirements), you
```sh
mkdir hornet
cd hornet
curl -L -O "https://github.com/iotaledger/node-docker-setup/releases/download/v1.0.0-rc.2/node-docker-setup-v1.0.0-rc.2.tar.gz"
tar -zxf node-docker-setup-v1.0.0-rc.2.tar.gz
curl -L -O "https://github.com/iotaledger/node-docker-setup/releases/download/v1.0.0-rc.16/node-docker-setup_stardust-v1.0.0-rc.16.tar.gz"
tar -zxf node-docker-setup_stardust-v1.0.0-rc.16.tar.gz
```

## Prepare
Expand All @@ -81,7 +84,8 @@ The commands assume you are using Linux.

You can configure your node to either use HTTP or HTTPS. For publicly exposed nodes we heavily recommend using HTTPS.

#### 1.1 HTTPS
<Tabs queryString="protocol">
<TabItem value="https" label="HTTPS">

Create a file named `.env` add the following to the file:

Expand All @@ -96,7 +100,8 @@ NODE_HOST=node.your-domain.com
- Replace `[email protected]` with the e-mail used for issuing a [Let's Encrypt](https://letsencrypt.org) SSL certificate.
- Replace `node.your-domain.com` with the domain pointing to your public IP address as described in the [requirements](#requirements).

#### 1.2 HTTP
</TabItem>
<TabItem value="http" label="HTTP">

By default this setup will expose the Traefik reverse proxy on the default HTTP port `80`.
If you want to change the port to a different value you can create a file named `.env` and add the following to e.g. expose it over port `9000`:
Expand All @@ -116,6 +121,9 @@ You don’t need `COMPOSE_FILE` and `ACME_EMAIL` for HTTP. You can remove them f
NODE_HOST=your-external-ip-address
```

</TabItem>
</Tabs>

### 2. Setup neighbors

Add your HORNET neighbor addresses to the `peering.json` file.
Expand Down