Skip to content

Commit

Permalink
Merge pull request #30 from patte/upgrade-to-fly-apps-v2
Browse files Browse the repository at this point in the history
fix: upgrade to fly apps v2
patte authored May 23, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 538acbe + fd36147 commit 20c5ec0
Showing 2 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

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

0 comments on commit 20c5ec0

Please sign in to comment.