Add the proxy server

This commit is contained in:
NBTX
2019-10-25 20:54:27 +01:00
parent 0673cf0bbb
commit f51bcc2406
2 changed files with 10 additions and 1 deletions

View File

@@ -976,7 +976,7 @@ export default {
const config = this.$store.state.postwoman.settings.PROXY_ENABLED const config = this.$store.state.postwoman.settings.PROXY_ENABLED
? { ? {
method: "POST", method: "POST",
url: `${window.location.protocol}//${window.location.host}/proxy`, url: `https://postwoman.apollotv.xyz/`,
data: requestOptions data: requestOptions
} }
: requestOptions; : requestOptions;

View File

@@ -48,6 +48,9 @@
</ul> </ul>
</pw-section> </pw-section>
<pw-section class="blue" icon="public" label="Proxy"> <pw-section class="blue" icon="public" label="Proxy">
<ul class="info">
<li><p>Postwoman's Proxy is hosted by ApolloTV.<br>You can read the ApolloTV privacy policy by clicking <a href="https://apollotv.xyz/legal" target="_blank">here</a/>.</p></li>
</ul>
<ul> <ul>
<li> <li>
<pw-toggle <pw-toggle
@@ -75,6 +78,12 @@
</div> </div>
</template> </template>
<style scoped>
.info {
margin-left: 5px;
}
</style>
<script> <script>
import section from "../components/section"; import section from "../components/section";
import swatch from "../components/settings/swatch"; import swatch from "../components/settings/swatch";