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

Upgrade to fly apps v2 #30

Merged
merged 3 commits into from
May 23, 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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ tailscale up --use-exit-node=fly-fra
#### 13. Regions
To add or remove regions just type:
```
flyctl regions add hkg
flyctl scale count 2
flyctl scale count --region hkg 1
flyctl scale count --region fra 1
```
Wait for the node to appear in tailscale, confirm it to be a legit exit node (step 11), choose it in your client and in less than 5 minutes to access the internet in another place.
Wait for the node to appear in tailscale, confirm it to be a legit exit node (step 11), choose it in your client boom! In less than 5 minutes you access the internet from another place.
Note: Scaling up also reinitializes the existing nodes. Just use the newly created one and delete the old.
Note: It seems not all fly regions have their own exit routers and some use another for egress traffic. This needs further investigation.

Expand Down
30 changes: 18 additions & 12 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
app = "tailwings"
# fly.toml app configuration file generated for tailwings on 2023-05-23T23:44:58+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "tailwings"
primary_region = "nrt"
kill_signal = "SIGINT"
kill_timeout = 5
kill_timeout = "5s"

[env]
PORT="41641"
# create a reusable or ephemeral auth key
# ephemeral auth key are not working for use as exit node as they are ipv6 only
# flyctl secrets set TAILSCALE_AUTH_KEY=tskey-...

[experimental]
auto_rollback = false
private_network = true
PORT = "41641"
# create a reusable auth key and set it:
# flyctl secrets set TAILSCALE_AUTH_KEY=tskey-...
# ephemeral keys are hardly working for use as exit node as they are ipv6 only

[[services]]
internal_port = 41641
protocol = "udp"
internal_port = 41641
processes = ["app"]

[[services.ports]]
port = "41641"
port = 41641
[services.concurrency]
type = "connections"
hard_limit = 100
soft_limit = 75