Skip to content

Commit

Permalink
[Dashboard] Add a allow_unsecure_http_requests setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAA3A-AAA3A committed May 16, 2024
1 parent ce2d514 commit 8af105d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def __init__(self, bot: Red) -> None:
"jwt_secret_key": None,
"secret": None,
"redirect_uri": None,
"allow_unsecure_http_requests": False,
"blacklisted_ips": [],
},
"ui": {
Expand Down Expand Up @@ -189,6 +190,12 @@ def __init__(self, bot: Red) -> None:
"path": ["webserver", "core", "redirect_uri"],
"aliases": ["redirect"],
},
"allow_unsecure_http_requests": {
"converter": bool,
"description": "Allow unsecure http requests. This is not recommended for production, but required if you can't set up a SSL certificate.",
"path": ["webserver", "core", "allow_unsecure_http_requests"],
"aliases": ["allowunsecure"],
},
"meta_title": {
"converter": str,
"description": "The website title to use.",
Expand Down

0 comments on commit 8af105d

Please sign in to comment.