Browse Source

Update Proxy URL (#1436)

* Update proxy URLs

* Update URLs in Vue file

Had to edit with web editor to avoid vs code changing indentation.

* Delete settings.json

Co-authored-by: Sam Jakob Mearns <me@samjakob.com>
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
John Harker 4 years ago
parent
commit
c7f7b96405

+ 1 - 1
helpers/strategies/AxiosStrategy.js

@@ -13,7 +13,7 @@ export const cancelRunningAxiosRequest = () => {
 const axiosWithProxy = async (req, { state }) => {
   try {
     const { data } = await axios.post(
-      state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
+      state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
       {
         ...req,
         wantsBinary: true,

+ 1 - 1
helpers/strategies/ExtensionStrategy.js

@@ -18,7 +18,7 @@ export const cancelRunningExtensionRequest = () => {
 const extensionWithProxy = async (req, { state }) => {
   const { data } = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest({
     method: "post",
-    url: state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
+    url: state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
     data: {
       ...req,
       wantsBinary: true,

+ 2 - 2
pages/settings.vue

@@ -206,7 +206,7 @@ export default {
         FRAME_COLORS_ENABLED: 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 || "https://postwoman.apollosoftware.xyz/",
+          this.$store.state.postwoman.settings.PROXY_URL || "https://hoppscotch.apollosoftware.xyz/",
         PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || "",
 
         EXTENSIONS_ENABLED:
@@ -257,7 +257,7 @@ export default {
       fb.writeSettings("syncEnvironments", true)
     },
     resetProxy({ target }) {
-      this.settings.PROXY_URL = `https://postwoman.apollosoftware.xyz/`
+      this.settings.PROXY_URL = `https://hoppscotch.apollosoftware.xyz/`
       target.innerHTML = this.doneButton
       this.$toast.info(this.$t("cleared"), {
         icon: "clear_all",