Skip to content

Commit 2d497e6

Browse files
committed
inital setup
1 parent effa505 commit 2d497e6

File tree

5 files changed

+2759
-4402
lines changed

5 files changed

+2759
-4402
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/fly-deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2+
3+
name: Fly Deploy
4+
on:
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
deploy:
10+
name: Deploy app
11+
runs-on: ubuntu-latest
12+
concurrency: deploy-group # optional: ensure only one action runs at a time
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: superfly/flyctl-actions/setup-flyctl@master
16+
- run: flyctl deploy --remote-only
17+
env:
18+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

fly.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# fly.toml app configuration file generated for yjs-webrtc-signaling on 2024-10-09T12:13:34+02:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
5+
6+
app = 'yjs-webrtc-signaling'
7+
primary_region = 'ams'
8+
kill_signal = 'SIGINT'
9+
kill_timeout = '5s'
10+
11+
[experimental]
12+
auto_rollback = true
13+
14+
[build]
15+
16+
[http_service]
17+
internal_port = 3000
18+
force_https = true
19+
auto_stop_machines = 'stop'
20+
auto_start_machines = true
21+
min_machines_running = 0
22+
processes = ['app']
23+
24+
[[services]]
25+
protocol = 'tcp'
26+
internal_port = 8080
27+
processes = ['app']
28+
29+
[[services.ports]]
30+
port = 80
31+
handlers = ['http']
32+
force_https = true
33+
34+
[[services.ports]]
35+
port = 443
36+
handlers = ['tls', 'http']
37+
38+
[[services.tcp_checks]]
39+
interval = '15s'
40+
timeout = '2s'
41+
grace_period = '1s'
42+
43+
[[vm]]
44+
size = 'shared-cpu-1x'
45+
memory = '512mb'
46+
cpu_kind = 'shared'
47+
cpus = 1

0 commit comments

Comments
 (0)