Remove origin_pin_allowed
This commit is contained in:
committed by
Cameron Gutman
parent
329620dc1a
commit
045044e7e7
@@ -612,33 +612,6 @@ cert
|
|||||||
|
|
||||||
cert = /dir/cert.pem
|
cert = /dir/cert.pem
|
||||||
|
|
||||||
origin_pin_allowed
|
|
||||||
^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
**Description**
|
|
||||||
The origin of the remote endpoint address that is not denied for HTTP method /pin.
|
|
||||||
|
|
||||||
**Choices**
|
|
||||||
|
|
||||||
.. table::
|
|
||||||
:widths: auto
|
|
||||||
|
|
||||||
===== ===========
|
|
||||||
Value Description
|
|
||||||
===== ===========
|
|
||||||
pc Only localhost may access /pin
|
|
||||||
lan Only LAN devices may access /pin
|
|
||||||
wan Anyone may access /pin
|
|
||||||
===== ===========
|
|
||||||
|
|
||||||
**Default**
|
|
||||||
``pc``
|
|
||||||
|
|
||||||
**Example**
|
|
||||||
.. code-block:: text
|
|
||||||
|
|
||||||
origin_pin_allowed = pc
|
|
||||||
|
|
||||||
origin_web_ui_allowed
|
origin_web_ui_allowed
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|||||||
@@ -380,7 +380,6 @@ namespace config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nvhttp_t nvhttp {
|
nvhttp_t nvhttp {
|
||||||
"pc", // origin_pin
|
|
||||||
"lan", // origin web manager
|
"lan", // origin web manager
|
||||||
|
|
||||||
PRIVATE_KEY_FILE,
|
PRIVATE_KEY_FILE,
|
||||||
@@ -997,7 +996,6 @@ namespace config {
|
|||||||
string_f(vars, "virtual_sink", audio.virtual_sink);
|
string_f(vars, "virtual_sink", audio.virtual_sink);
|
||||||
bool_f(vars, "install_steam_audio_drivers", audio.install_steam_drivers);
|
bool_f(vars, "install_steam_audio_drivers", audio.install_steam_drivers);
|
||||||
|
|
||||||
string_restricted_f(vars, "origin_pin_allowed", nvhttp.origin_pin_allowed, { "pc"sv, "lan"sv, "wan"sv });
|
|
||||||
string_restricted_f(vars, "origin_web_ui_allowed", nvhttp.origin_web_ui_allowed, { "pc"sv, "lan"sv, "wan"sv });
|
string_restricted_f(vars, "origin_web_ui_allowed", nvhttp.origin_web_ui_allowed, { "pc"sv, "lan"sv, "wan"sv });
|
||||||
|
|
||||||
int to = -1;
|
int to = -1;
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ namespace config {
|
|||||||
struct nvhttp_t {
|
struct nvhttp_t {
|
||||||
// Could be any of the following values:
|
// Could be any of the following values:
|
||||||
// pc|lan|wan
|
// pc|lan|wan
|
||||||
std::string origin_pin_allowed;
|
|
||||||
std::string origin_web_ui_allowed;
|
std::string origin_web_ui_allowed;
|
||||||
|
|
||||||
std::string pkey; // must be 2048 bits
|
std::string pkey; // must be 2048 bits
|
||||||
|
|||||||
@@ -41,13 +41,11 @@ namespace http {
|
|||||||
user_creds_exist(const std::string &file);
|
user_creds_exist(const std::string &file);
|
||||||
|
|
||||||
std::string unique_id;
|
std::string unique_id;
|
||||||
net::net_e origin_pin_allowed;
|
|
||||||
net::net_e origin_web_ui_allowed;
|
net::net_e origin_web_ui_allowed;
|
||||||
|
|
||||||
int
|
int
|
||||||
init() {
|
init() {
|
||||||
bool clean_slate = config::sunshine.flags[config::flag::FRESH_STATE];
|
bool clean_slate = config::sunshine.flags[config::flag::FRESH_STATE];
|
||||||
origin_pin_allowed = net::from_enum_string(config::nvhttp.origin_pin_allowed);
|
|
||||||
origin_web_ui_allowed = net::from_enum_string(config::nvhttp.origin_web_ui_allowed);
|
origin_web_ui_allowed = net::from_enum_string(config::nvhttp.origin_web_ui_allowed);
|
||||||
|
|
||||||
if (clean_slate) {
|
if (clean_slate) {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ namespace http {
|
|||||||
url_get_host(const std::string &url);
|
url_get_host(const std::string &url);
|
||||||
|
|
||||||
extern std::string unique_id;
|
extern std::string unique_id;
|
||||||
extern net::net_e origin_pin_allowed;
|
|
||||||
extern net::net_e origin_web_ui_allowed;
|
extern net::net_e origin_web_ui_allowed;
|
||||||
|
|
||||||
} // namespace http
|
} // namespace http
|
||||||
|
|||||||
@@ -871,24 +871,6 @@
|
|||||||
Store Username/Password separately from Sunshine's state file.
|
Store Username/Password separately from Sunshine's state file.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--Origin PIN Allowed-->
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="origin_pin_allowed" class="form-label"
|
|
||||||
>Origin PIN Allowed</label
|
|
||||||
>
|
|
||||||
<select
|
|
||||||
id="origin_pin_allowed"
|
|
||||||
class="form-select"
|
|
||||||
v-model="config.origin_pin_allowed"
|
|
||||||
>
|
|
||||||
<option value="pc">Only localhost may access /pin</option>
|
|
||||||
<option value="lan">Only those in LAN may access /pin</option>
|
|
||||||
<option value="wan">Anyone may access /pin</option>
|
|
||||||
</select>
|
|
||||||
<div class="form-text">
|
|
||||||
The origin of the remote endpoint address that is not denied for HTTP method /pin
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--External IP-->
|
<!--External IP-->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="external_ip" class="form-label">External IP</label>
|
<label for="external_ip" class="form-label">External IP</label>
|
||||||
@@ -1168,7 +1150,6 @@
|
|||||||
"nvenc_preset": "1",
|
"nvenc_preset": "1",
|
||||||
"nvenc_realtime_hags": "enabled",
|
"nvenc_realtime_hags": "enabled",
|
||||||
"nvenc_twopass": "quarter_res",
|
"nvenc_twopass": "quarter_res",
|
||||||
"origin_pin_allowed": "pc",
|
|
||||||
"origin_web_ui_allowed": "lan",
|
"origin_web_ui_allowed": "lan",
|
||||||
"qsv_coder": "auto",
|
"qsv_coder": "auto",
|
||||||
"qsv_preset": "medium",
|
"qsv_preset": "medium",
|
||||||
|
|||||||
Reference in New Issue
Block a user