<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>google site kit &#8211; 超哥工作室</title>
	<atom:link href="https://www.chaoneo.cn/tags/google-site-kit/feed" rel="self" type="application/rss+xml" />
	<link>https://www.chaoneo.cn</link>
	<description>CHAONEO.CN</description>
	<lastBuildDate>Fri, 12 Dec 2025 05:53:58 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>

<image>
	<url>https://img2.ladyww.cn/chaoneo/2022/09/20220921204437747.png</url>
	<title>google site kit &#8211; 超哥工作室</title>
	<link>https://www.chaoneo.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>google site kit 插件国内宝塔服务器访问解决办法</title>
		<link>https://www.chaoneo.cn/archives/3847.html</link>
		
		<dc:creator><![CDATA[超哥]]></dc:creator>
		<pubDate>Fri, 12 Dec 2025 05:53:58 +0000</pubDate>
				<category><![CDATA[心得]]></category>
		<category><![CDATA[google site kit]]></category>
		<category><![CDATA[Site Kit]]></category>
		<guid isPermaLink="false">https://www.chaoneo.cn/?p=3847</guid>

					<description><![CDATA[做外贸网站或者跨境电商的肯定离不开google site kit，上一次记录国内宝塔服务器开启Site Kit by Google插件方法，方法是可用的，相对麻烦，这次超哥优化了解...]]></description>
										<content:encoded><![CDATA[<p>做外贸网站或者跨境电商的肯定离不开google site kit，上一次记录<a href="https://www.chaoneo.cn/archives/3770.html" target="_blank" rel="bookmark noopener">国内宝塔服务器开启Site Kit by Google插件方法</a>，方法是可用的，相对麻烦，这次超哥优化了解决办法，压缩了整体的成本。不用单独开个服务器跳转，直接在自己使用的海外宝塔服务器上增加一个<span>CONNECT支持。简单高效，还是很推荐的。下面记录一下操作步骤：</span></p>
<p><img fetchpriority="high" decoding="async" src="https://sitekit.withgoogle.com/wp-content/themes/site-kit-website-v1/assets/images/front-page/why-site-kit.svg" width="790" height="445" class="aligncenter" /></p>
<p>&nbsp;</p>
<h4><b>🔍 第一步：先确认系统版本</b></h4>
<p>腾讯云服务器的版本：<b>OpenCloudOS 9.2（oc9）。</b></p>
<h4><b>🎯</b><b style="color: inherit; font-family: inherit;">推荐方案：安装 Squid（兼容性最高 / 支持 HTTPS CONNECT / Site Kit 100% 可用）</b></h4>
<p class="p3">Squid → 专业代理服务器 → 支持 <span class="s2">CONNECT</span> → 适配谷歌 OAuth → Site Kit 能正常连上。</p>
<p class="p4"><span class="s3">OpenCloudOS 9 中 </span><b>Squid 可以直接安装（不需要编译）</b><span class="s3">。</span></p>
<p class="p1">SSH 输入：</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>dnf install squid -y</code></pre>
<p class="p1">如果成功，会安装 Squid 5.x（完全支持 CONNECT）。</p>
<h4><b>✅</b><b style="color: inherit; font-family: inherit;">第二步：配置 Squid</b></h4>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>nano /etc/squid/squid.conf</code></pre>
</div>
<p>squid.conf配置代码：</p>
</div>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>
# 监听端口（可以自定义短款）
http_port 8080

# 访问控制：允许所有IP（测试用，后续可改为指定IP）
http_access allow all

cache deny all

connect_timeout 60 seconds
read_timeout 120 seconds
request_timeout 120 seconds
client_lifetime 360 seconds

prefer_direct on
forwarded_for on

access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none

dns_timeout 30 seconds</code></pre>
<p>配置上可以自定义端口，也可以指定IP访问，安全上会好很多，但是一般情况下没人在意这个，私用可以忽略。</p>
</div>
<h4><b>✅</b><b style="color: inherit; font-family: inherit;">第三步：启动 Squid</b></h4>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>systemctl enable squid
systemctl restart squid
systemctl status squid</code></pre>
<p>&nbsp;</p>
<p class="p1"><span class="s1">如果看到 </span>active (running)<span class="s1"> 就成功了。</span></p>
<h4><b>✅</b><b style="color: inherit; font-family: inherit;">第四步：在国内 WordPress 设置代理</b></h4>
</div>
<p class="p1"><span class="s1">编辑 </span>wp-config.php<span class="s1">：</span></p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>define('WP_PROXY_HOST', '香港服务器IP');
define('WP_PROXY_PORT', '3128');
define('WP_PROXY_BYPASS_HOSTS', 'localhost, 127.0.0.1');</code></pre>
<p>&nbsp;</p>
<h4><b>✅</b><b style="color: inherit; font-family: inherit;">第五步：测试代理是否能访问 Google</b></h4>
</div>
<p class="p1">在国内服务器 SSH 执行：</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>curl -I -x http://国外服务器IP:3128 https://www.google.com</code></pre>
<p>如果返回</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-bash" data-lang="Bash"><code>HTTP/2 200</code></pre>
<p>就说明ok。</p>
<p>当然，这里Squid还是可以配置ssl证书和域名来访问，由于我是个人使用，安全需求没那么重要，简单满足即可。</p>
<h1><b>🚀 最终效果：</b></h1>
<p class="p3">✔ Site Kit 能连接 Google</p>
<p class="p3">✔ Google OAuth 能走 CONNECT</p>
<p class="p3">✔ 所有 Google API 都能连</p>
<p class="p3">✔ 高稳定</p>
<p class="p3">✔ 香港做代理最快最稳定</p>
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
