From ad2c4821234e43ac2261bb59d5c587c037e80cf8 Mon Sep 17 00:00:00 2001 From: Altonhe Date: Tue, 14 Apr 2020 20:00:37 +0800 Subject: [PATCH] add discord host --- README.md | 41 +++++++++++++++--------- RProxy2/caddy2/Caddyfile | 13 ++++++-- RProxy2/caddy2/steamcommunity.crt | 38 +++++++++++----------- RProxy2/caddy2/steamcommunity.key | 52 +++++++++++++++---------------- hosts.txt | 35 ++++++++++++++------- 5 files changed, 107 insertions(+), 72 deletions(-) diff --git a/README.md b/README.md index af36f89..0f2b3c8 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,14 @@ A simple magisk module to archive local reverse proxy,so you can access discord& - [x] Pixiv - [x] Steam Community - [x] Discord -- [x] Google(only reCAPTCHA) +- [x] reCAPTCHA - [x] Medium ## Install This module is still on development,You can download it in release -**make sure you have installed** **[edxposed](disable SSL verification) and [magisk](https://github.com/topjohnwu/Magisk/releases)** +**make sure you have installed** **[edxposed](https://github.com/ElderDrivers/EdXposed) and [magisk](https://github.com/topjohnwu/Magisk/releases)** 1.install [TrustmeAlready](https://github.com/ViRb3/TrustMeAlready) to disable SSL verification @@ -36,17 +36,30 @@ This module is still on development,You can download it in release 223.119.248.19 eaassets-a.akamaihd.net #UHE_ 223.119.248.19 humblebundle-a.akamaihd.net #UHE_ 223.119.248.19 steamcommunity-a.akamaihd.net #UHE_ -127.0.0.1 steamcommunity.com #S302 -127.0.0.1 www.steamcommunity.com #S302 -127.0.0.1 discordapp.com #S302 -127.0.0.1 dl.discordapp.net #S302 -127.0.0.1 status.discordapp.com #S302 -127.0.0.1 cdn.discordapp.com #S302 -127.0.0.1 media.discordapp.net #S302 -127.0.0.1 images-ext-2.discordapp.net #S302 -127.0.0.1 images-ext-1.discordapp.net #S302 -127.0.0.1 support.discordapp.com #S302 -127.0.0.1 url7195.discordapp.com #S302 +127.0.0.1 steamcommunity.com +127.0.0.1 www.steamcommunity.com +127.0.0.1 discordapp.com +127.0.0.1 dl.discordapp.net +127.0.0.1 media.discordapp.net +127.0.0.1 images-ext-2.discordapp.net +127.0.0.1 images-ext-1.discordapp.net +127.0.0.1 support.discordapp.com +127.0.0.1 url9177.discordapp.com +127.0.0.1 canary-api.discordapp.com +127.0.0.1 cdn-ptb.discordapp.com +127.0.0.1 ptb.discordapp.com +127.0.0.1 status.discordapp.com +127.0.0.1 cdn-canary.discordapp.com +127.0.0.1 cdn.discordapp.com +127.0.0.1 streamkit.discordapp.com +127.0.0.1 i18n.discordapp.com +127.0.0.1 url9624.discordapp.com +127.0.0.1 url7195.discordapp.com +127.0.0.1 merch.discordapp.com +127.0.0.1 printer.discordapp.com +127.0.0.1 canary.discordapp.com +127.0.0.1 apps.discordapp.com +127.0.0.1 pax.discordapp.com 127.0.0.1 www.google.com #S302 127.0.0.1 www.pixiv.net 127.0.0.1 pixiv.net @@ -106,7 +119,7 @@ cd /data/local/caddy2 [Caddy2](https://github.com/caddyserver/caddy/releases) :A light&speed server to archive local reverse proxy -[newtrek](https://www.jianshu.com/u/a8649c5c66fe):Add medium support +[newtrek](https://www.jianshu.com/u/a8649c5c66fe):support medium hosts rule ## Thanks diff --git a/RProxy2/caddy2/Caddyfile b/RProxy2/caddy2/Caddyfile index b6d96d2..8101fe9 100644 --- a/RProxy2/caddy2/Caddyfile +++ b/RProxy2/caddy2/Caddyfile @@ -169,7 +169,15 @@ reverse_proxy https://google.com { header_up Host www.google.com } } - +https://url9177.discordapp.com https://canary-api.discordapp.com https://cdn-ptb.discordapp.com https://ptb.discordapp.com https://status.discordapp.com https://cdn-canary.discordapp.com https://cdn.discordapp.com https://streamkit.discordapp.com https://i18n.discordapp.com https://url9624.discordapp.com https://url7195.discordapp.com https://merch.discordapp.com https://printer.discordapp.com https://canary.discordapp.com https://apps.discordapp.com https://pax.discordapp.com { +tls steamcommunity.crt steamcommunity.key +reverse_proxy https://162.159.133.233 https://162.159.129.233 https://162.159.130.233 https://162.159.134.233 https://162.159.135.233 { +header_up Host {host} +transport http_ntlm { +tls_insecure_skip_verify +} +} +} https://pixiv.net, www.pixiv.net, ssl.pixiv.net, accounts.pixiv.net, touch.pixiv.net, oauth.secure.pixiv.net { @@ -261,4 +269,5 @@ transport http_ntlm { tls_insecure_skip_verify } } -} \ No newline at end of file +} + diff --git a/RProxy2/caddy2/steamcommunity.crt b/RProxy2/caddy2/steamcommunity.crt index 2ba1e5e..37942fb 100644 --- a/RProxy2/caddy2/steamcommunity.crt +++ b/RProxy2/caddy2/steamcommunity.crt @@ -1,20 +1,20 @@ -----BEGIN CERTIFICATE----- -MIIFqzCCBJOgAwIBAgIJAKLcsvbBixT3MA0GCSqGSIb3DQEBCwUAMF0xCzAJBgNV +MIIFqzCCBJOgAwIBAgIJAPCj7vM6oDehMA0GCSqGSIb3DQEBCwUAMF0xCzAJBgNV BAYTAlhYMQswCQYDVQQIDAJYWDELMAkGA1UEBwwCWFgxCzAJBgNVBAoMAlhYMQsw -CQYDVQQLDAJYWDEaMBgGA1UEAwwRU3RlYW1jb21tdW5pdHkzMDIwHhcNMjAwNDAz -MTkwNzE2WhcNMzAwNDAxMTkwNzE2WjBdMQswCQYDVQQGEwJYWDELMAkGA1UECAwC +CQYDVQQLDAJYWDEaMBgGA1UEAwwRU3RlYW1jb21tdW5pdHkzMDIwHhcNMjAwNDE0 +MTEzMzA2WhcNMzAwNDEyMTEzMzA2WjBdMQswCQYDVQQGEwJYWDELMAkGA1UECAwC WFgxCzAJBgNVBAcMAlhYMQswCQYDVQQKDAJYWDELMAkGA1UECwwCWFgxGjAYBgNV BAMMEVN0ZWFtY29tbXVuaXR5MzAyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB -CgKCAQEAzyKUpVdKQ677mrj7Rmtro7P3/rZrnW3CVHe1Tzr+Su9Mtqt3LtWCO0PP -4IZVvg3FcbXWI5bm8+QGIz5VO6GRdUzjzPtNzcr+Q1+pg2xwnDQuJo8UK+upF84x -3SW1jkm1ak2v6PH2g4qYLRJmIWPRJFxfeGYaeEleUDotkmR3DFEBp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yMF8DynQzh2LEDU7JrzXPkw4AerMrFF2Kx2EE +dISEdKBz8Qzf1aGMgNozbLY8bvVX52tv1ufpNDvlDI+NYFevKa/SNhflPHOZeO0T +w5t8OwgpTwLKwGLXNwEfJSN5z6/nlNQPyXvc0XmV81D2PzUvN2/M2hoIRi2zBkJB +dheSx0JvojASvB9tnpxV -----END CERTIFICATE----- diff --git a/RProxy2/caddy2/steamcommunity.key b/RProxy2/caddy2/steamcommunity.key index e9f8227..a8c6357 100644 --- a/RProxy2/caddy2/steamcommunity.key +++ b/RProxy2/caddy2/steamcommunity.key @@ -1,28 +1,28 @@ -----BEGIN PRIVATE KEY----- -MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDPIpSlV0pDrvua -uPtGa2ujs/f+tmudbcJUd7VPOv5K70y2q3cu1YI7Q8/ghlW+DcVxtdYjlubz5AYj -PlU7oZF1TOPM+03Nyv5DX6mDbHCcNC4mjxQr66kXzjHdJbWOSbVqTa/o8faDipgt -EmYhY9EkXF94Zhp4SV5QOi2SZHcMUQGmX94L5fjZkt5Z7BezmChvMEUV69eomBks -Dk5Vsq0oeUSWjZwMiZp8lMo4BYZwgsUMDHI3XuMdIBMsZCC7DZpyCfp9PlXxDke0 -EQYohump1mrgutisZqS/fql7uDHLuTBe1BrS0NYTvyBF4VxPoL8nBvQzwIjPcKPX -LNGT2K53AgMBAAECggEAFyUbDPqa/sMftCM1WKIKLgmfDWQe1EF+dGfH56mE3qSs -osC4GZCb87lZEhKQpCLvzAvweJuVBO2WzftaFMax9TR5Q99Uy0kCbk7TJy9Hyfx+ -p6pXK60ygMl2guqCxfpwfgdeP55B2GL1LBwhM1vu86wqss5d6NDx6+8ERpZZQxPa -rZP2xckgOvAXRl7Dppc/8wUqLglHdhHWN1CCWyR+dxGt0HGpet2SmQbOwxywT6Wb -zWSgfxtFK6bu0pNPw0JNQvc3LyFFFrfWHVkla0V3IBEgjqiFob71cgyRgeeOalUc -4z9KcxvUQ8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sG +QLnvNXmt0ZG3VptXcCyJzDRu9i9cgVMQpC1/0tJ0wtZtSXXlP7lIYXPsgQKBgCZo +/WmKo7kyn/i5/PiSWUlKpxFNxl+hVb0zGUJyq+aQiFsXGpj9ijLRQX0ZDOfXSp8+ +ow7uK5GuUdxqYO+vGT3GofF24VBghhq7eU4AMBZyetSx1K6YjGjDEzfymaLcwZz0 +AT5jOurpVVbZ6PzUqX1EeFmx9bpw4LJ7BvVvUKDbAoGAFR4FdjTrIq3A4UaQFPcp +GThAcgiWU05HyPQX2ZaZmUfiReDw5W+WYkiaO39t9pd0ItK4rJbpKdQGRGMFON8g +ak7lliCkmVfzad1IwDK8GpWoUY5AFTwukI0etctIylYkOpEuRPnd/djNN6YbTw9W +OXBrqhnfN3UjaE4w8zNp8UY= -----END PRIVATE KEY----- diff --git a/hosts.txt b/hosts.txt index 1bc3b3a..058bdba 100644 --- a/hosts.txt +++ b/hosts.txt @@ -6,17 +6,30 @@ 223.119.248.19 eaassets-a.akamaihd.net #UHE_ 223.119.248.19 humblebundle-a.akamaihd.net #UHE_ 223.119.248.19 steamcommunity-a.akamaihd.net #UHE_ -127.0.0.1 steamcommunity.com #S302 -127.0.0.1 www.steamcommunity.com #S302 -127.0.0.1 discordapp.com #S302 -127.0.0.1 dl.discordapp.net #S302 -127.0.0.1 status.discordapp.com #S302 -127.0.0.1 cdn.discordapp.com #S302 -127.0.0.1 media.discordapp.net #S302 -127.0.0.1 images-ext-2.discordapp.net #S302 -127.0.0.1 images-ext-1.discordapp.net #S302 -127.0.0.1 support.discordapp.com #S302 -127.0.0.1 url7195.discordapp.com #S302 +127.0.0.1 steamcommunity.com +127.0.0.1 www.steamcommunity.com +127.0.0.1 discordapp.com +127.0.0.1 dl.discordapp.net +127.0.0.1 media.discordapp.net +127.0.0.1 images-ext-2.discordapp.net +127.0.0.1 images-ext-1.discordapp.net +127.0.0.1 support.discordapp.com +127.0.0.1 url9177.discordapp.com +127.0.0.1 canary-api.discordapp.com +127.0.0.1 cdn-ptb.discordapp.com +127.0.0.1 ptb.discordapp.com +127.0.0.1 status.discordapp.com +127.0.0.1 cdn-canary.discordapp.com +127.0.0.1 cdn.discordapp.com +127.0.0.1 streamkit.discordapp.com +127.0.0.1 i18n.discordapp.com +127.0.0.1 url9624.discordapp.com +127.0.0.1 url7195.discordapp.com +127.0.0.1 merch.discordapp.com +127.0.0.1 printer.discordapp.com +127.0.0.1 canary.discordapp.com +127.0.0.1 apps.discordapp.com +127.0.0.1 pax.discordapp.com 127.0.0.1 www.google.com #S302 127.0.0.1 www.pixiv.net 127.0.0.1 pixiv.net