Skip to content

Commit

Permalink
Merge pull request #345 from NBTX/master
Browse files Browse the repository at this point in the history
Add Proxy URL option
  • Loading branch information
liyasthomas authored Nov 26, 2019
2 parents 2f727b1 + dd28073 commit 1aa5ec6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 8 additions & 2 deletions pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 || ""
}
};
Expand Down

0 comments on commit 1aa5ec6

Please sign in to comment.