wireguard-vpn-setup/config.dist.ini
Kumi e192076414
feat: setup WireGuard VPN server automation across providers
Introduce a new feature to automate the creation and configuration of WireGuard VPN servers across multiple cloud providers (Hetzner, AWS, DigitalOcean, Azure). Changes include:

- Added a `.gitignore` file to exclude `config.ini` and `venv/`.
- Provided `config.dist.ini` with configuration templates for supported providers.
- Created a `requirements.txt` listing all necessary dependencies.
- Developed `worker.py` to handle server creation, WireGuard setup, and configuration management.

This enhancement simplifies and standardizes VPN server deployment, improving operational efficiency and consistency.
2024-07-18 17:24:24 +02:00

51 lines
No EOL
1.5 KiB
INI

[wireguard]
# WireGuard configuration for the VPN server
address = 10.123.123.2, fdfd:fdfd:1234::2
listen_port = 1234
# Peer configuration
peer_public_key = public key of the peer
peer_allowed_ips = 10.123.123.1, fdfd:fdfd:1234::1
peer_endpoint = 1.2.3.4:1234
peer_persistent_keepalive = 25
# IP addresses that should be routed through the VPN - this is returned in the WireGuard configuration generated
# The default value below routes all Google IP addresses as well as https://icanhazip.com as used in Invidious' smart-ipv6-rotator
# The addresses of the server itself are automatically routed through the VPN
#
# To route all traffic through the VPN, use:
# routed_addresses = 0.0.0.0/0, ::/0
routed_addresses = 2001:4860:4000::/36, 2404:6800:4000::/36, 2607:f8b0:4000::/36, 2800:3f0:4000::/36, 2a00:1450:4000::/36, 2c0f:fb50:4000::/36, 2606:4700::6812:7261
[hetzner]
api_token = your_hetzner_api_token
location = nbg1
server_type = cx22
image = debian-12
[aws]
access_key = your_aws_access_key
secret_key = your_aws_secret_key
region = us-east-1
instance_type = t2.micro
ami_name = debian-12-amd64-20240702-1796
key_pair = your_aws_key_pair
[digitalocean]
api_token = your_digitalocean_api_token
region = nyc3
server_type = s-1vcpu-1gb
image = debian-12-x64
[azure]
subscription_id = your_azure_subscription_id
client_id = your_azure_client_id
client_secret = your_azure_client_secret
tenant_id = your_azure_tenant_id
location = eastus
vm_size = Standard_B1s
image_publisher = Debian
image_offer = debian-11
image_sku = 11-backports-gen2