<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Seafile on Laily&#39;s Note</title>
    
    
    
    <link>/tags/seafile/</link>
    <description>Recent content in Seafile on Laily&#39;s Note</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Fri, 13 Feb 2026 01:01:34 +0800</lastBuildDate>
    
	<atom:link href="/tags/seafile/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>seafile 配置</title>
      <link>/post/seafile/settings/</link>
      <pubDate>Fri, 13 Feb 2026 01:01:34 +0800</pubDate>
      
      <guid>/post/seafile/settings/</guid>
      <description>
        
          
          
          
        
        
        
          &lt;p&gt;Seafile 对域名极其敏感，证书配好后，必须修改内部配置，否则会出现登录报错或重定向循环。&lt;/p&gt;
&lt;h3 id=&#34;1-修改-seafile-内部配置-最重要&#34;&gt;
  1. 修改 Seafile 内部配置 (最重要)
  &lt;a href=&#34;#1-%e4%bf%ae%e6%94%b9-seafile-%e5%86%85%e9%83%a8%e9%85%8d%e7%bd%ae-%e6%9c%80%e9%87%8d%e8%a6%81&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;SERVICE_URL&lt;/code&gt;&lt;/strong&gt;: 必须改为 &lt;code&gt;https://files.laily.net&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;FILE_SERVER_ROOT&lt;/code&gt;&lt;/strong&gt;: 必须改为 &lt;code&gt;https://files.laily.net/seafhttp&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CSRF/Allowed Hosts&lt;/strong&gt;: 在 &lt;code&gt;seahub_settings.py&lt;/code&gt; 中确认 &lt;code&gt;ALLOWED_HOSTS&lt;/code&gt; 包含你的域名。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-修复-serverdown-1-keys-failed&#34;&gt;
  2. 修复 &lt;code&gt;ServerDown: 1 keys failed&lt;/code&gt;
  &lt;a href=&#34;#2-%e4%bf%ae%e5%a4%8d-serverdown-1-keys-failed&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;这是 &lt;strong&gt;Memcached&lt;/strong&gt; 挂了或连接断开的标志。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;排查&lt;/strong&gt;：确认 Memcached Pod 运行正常，且 Seafile 配置中的缓存地址（如 &lt;code&gt;memcached:11211&lt;/code&gt;）在 K8s 内网可解析。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;3-ingress-协议透传注解&#34;&gt;
  3. Ingress 协议透传注解
  &lt;a href=&#34;#3-ingress-%e5%8d%8f%e8%ae%ae%e9%80%8f%e4%bc%a0%e6%b3%a8%e8%a7%a3&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;在 Ingress 的 &lt;code&gt;annotations&lt;/code&gt; 中加入以下内容，防止 404 或协议丢失：&lt;/p&gt;
          
        
        </description>
    </item>
    
  </channel>
</rss>