Add Proxy URL option

This commit is contained in:
NBTX
2019-11-26 06:53:12 -06:00
parent 2f727b1a1e
commit dd280732d1
2 changed files with 9 additions and 3 deletions

View File

@@ -1412,7 +1412,7 @@ export default {
const config = this.$store.state.postwoman.settings.PROXY_ENABLED
? {
method: "POST",
url: `https://postwoman.apollotv.xyz/`,
url: this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",
data: requestOptions
}
: requestOptions;

View File

@@ -80,10 +80,16 @@
</div>
</li>
</ul>
<ul>
<li>
<label for="url">URL</label>
<input id="url" type="url" v-model="settings.PROXY_URL" :disabled="!settings.PROXY_ENABLED">
</li>
</ul>
<ul class="info">
<li>
<p>
Postwoman's Proxy is hosted by ApolloTV.
Postwoman's Official Proxy is hosted by ApolloTV.
<br />
Read the
<a href="https://apollotv.xyz/legal" target="_blank" rel="noopener"
@@ -216,7 +222,7 @@ export default {
this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false,
PROXY_ENABLED:
this.$store.state.postwoman.settings.PROXY_ENABLED || false,
PROXY_URL: this.$store.state.postwoman.settings.PROXY_URL || "",
PROXY_URL: this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || ""
}
};