-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: using private signaling server on fly.io
- Loading branch information
1 parent
c1f2225
commit 25e3b94
Showing
7 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
export const BASE_URL = 'https://thewh1teagle.github.io/mobslide/' | ||
import {PeerOptions} from 'peerjs' | ||
export const BASE_URL = 'https://thewh1teagle.github.io/mobslide/' | ||
export const PEERJS_OPTIONS: PeerOptions = { | ||
host: 'mobslide-signaling.fly.dev', | ||
port: 443, | ||
path: '/', | ||
pingInterval: 2000, | ||
secure: true, | ||
debug: 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM peerjs/peerjs-server | ||
|
||
# Expose port 9000 | ||
EXPOSE 9000 | ||
ENTRYPOINT ["node", "peerjs.js", "--host", "0.0.0.0", "--port", "9000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# fly.toml app configuration file generated for mobslide-signaling on 2023-11-20T04:36:58+02:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = "mobslide-signaling" | ||
primary_region = "mad" | ||
|
||
[build] | ||
dockerfile = "Dockerfile" | ||
|
||
[http_service] | ||
internal_port = 9000 | ||
force_https = true | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {PeerOptions} from 'peerjs' | ||
|
||
export const PEERJS_OPTIONS: PeerOptions = { | ||
host: 'mobslide-signaling.fly.dev', | ||
port: 443, | ||
path: '/', | ||
pingInterval: 2000, | ||
secure: true, | ||
debug: 3 | ||
} |