This is the infrastructure setup for enabling pull request deployment previews via FRP tunneling. This repository contains the necessary configuration to deploy and manage an FRP server on Hetzner, facilitating pull request preview environments for Nebari.
The FRP server can be accessed via SSH. User access is managed through an Ansible task that runs on pushes to the main branch.
To gain access to the server:
- Submit a PR to
ansible/vars/users.yaml
adding your GitHub username - After the PR is merged, the Ansible playbook will automatically run
- Connect to the server using:
Note: Server access is restricted to Nebari core team members only.
The FRP server is configured in frp_config/frps.toml
. Key settings include:
- bind_port: Port for FRP client connections (default: 7000)
- token: Authentication token for clients
To use this FRP server for preview deployments in your repositories, add the FRP tunnel action to your workflow. See example usage here.
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.