Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohammadshaad/luganodes-assignment

Ansible Polkadot Node Setup with Reverse Proxy
https://github.com/mohammadshaad/luganodes-assignment

ansible aws

Last synced: 13 days ago
JSON representation

Ansible Polkadot Node Setup with Reverse Proxy

Awesome Lists containing this project

README

        

# Polkadot Node Setup with Reverse Proxy

This repository provides Ansible playbooks for setting up a Polkadot full node and configuring an Nginx reverse proxy.

## Prerequisites

- Ansible installed on your local machine.
- Access to an Ubuntu server where you will run the playbooks.
- SSH access to the remote server with the private key file (`luganodes.pem`).

## Setup

1. **Clone the Repository**

```bash
git clone https://github.com/mohammadshaad/luganodes-assignment.git
cd luganodes-assignment
```

2. **Update Inventory File**

Edit `inventory.ini` to match your server details:

```ini
[node1]
node1 ansible_host=[your-host] ansible_ssh_user=ubuntu ansible_ssh_private_key_file=[.pem file path]
```

3. **Setup Polkadot Full Node**

Run the Ansible playbook to set up the Polkadot full node:

```bash
ansible-playbook -i inventory.ini polkadot_setup.yml
```

4. **Setup Reverse Proxy**

Run the Ansible playbook to set up Nginx as a reverse proxy:

```bash
ansible-playbook -i inventory.ini reverse_proxy.yml
```

## Playbooks

### `polkadot_setup.yml`

- Installs required packages.
- Downloads the Polkadot binary.
- Starts the Polkadot node with warp sync.

### `reverse_proxy.yml`

- Installs Nginx.
- Configures Nginx to proxy requests to the Polkadot node.
- Enables and restarts Nginx with the new configuration.

## Output

![image](https://github.com/user-attachments/assets/414ead5c-5bb4-4925-81d2-6caaae909138)

Screenshot 2024-09-10 at 10 09 16 PM

![image](https://github.com/user-attachments/assets/40e80bf9-def9-457d-bc3a-c4490a72008f)