Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mohammadshaad/luganodes-assignment
- Owner: mohammadshaad
- Created: 2024-09-09T15:13:31.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T18:20:48.000Z (2 months ago)
- Last Synced: 2024-10-17T09:08:27.221Z (30 days ago)
- Topics: ansible, aws
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
![image](https://github.com/user-attachments/assets/40e80bf9-def9-457d-bc3a-c4490a72008f)