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

Add an argument to the signaling server to support symlinked files in… #144

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.2
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ class Args:
password: str
ice_servers: Path
static_folder: Path
follow_symlinks: bool
certificate: Path
key: Path
log_level: int
Expand All @@ -266,6 +267,7 @@ def main(other_routes=None):
parser.add_argument('--password', type=str, help='Choose the password', default=None)
parser.add_argument('--ice_servers', type=ExpandUserPath, help='Choose the ice servers json file', default=None)
parser.add_argument('--static_folder', type=ExpandUserPath, help='Choose the static folder', default=None)
parser.add_argument('--follow_symlinks', action="store_true", help='Follow symlinks for static folder, SECURITY RISK')
parser.add_argument('--certificate', type=ExpandUserPath, help='TLS certificate path', default=None)
parser.add_argument('--key', type=ExpandUserPath, help='TLS private key path', default=None)
parser.add_argument('--log_level', type=int, choices=[logging.CRITICAL, logging.ERROR,
Expand Down Expand Up @@ -306,7 +308,7 @@ def main(other_routes=None):

# Create static route if required
if args.static_folder is not None:
app.add_routes([web.static('/', args.static_folder)])
app.add_routes([web.static('/', args.static_folder, follow_symlinks=args.follow_symlinks)])

# Run app
if using_tls:
Expand Down
Loading