# 🔥維護記錄

**URL:** <https://forum.rdfzer.com/t/topic/40>\
**Category:** 卮言\
**Tags:** 学问\
**Created:** [2024 年3 月 12 日 08:53 UTC](https://forum.rdfzer.com/t/topic/40 "2024-03-12T08:53:47Z")\
**Posts on this page:** 20\
**Page:** 25

<div class="post-metadata">

作者： ![P9pijiu](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/p9pijiu/32/36421_2.png) [@P9pijiu](https://forum.rdfzer.com/u/P9pijiu)\
发布日期： [2026 年1 月 16 日 11:48 UTC](https://forum.rdfzer.com/t/topic/40/552 "2026-01-16T11:48:38Z")

</div>

哎我去这是suen的声音吗，这么好听？（没听过）

---

<div class="post-metadata">

作者： ![zwjzwj](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/zwjzwj/32/2728_2.png) [@zwjzwj](https://forum.rdfzer.com/u/zwjzwj)\
发布日期： [2026 年1 月 16 日 11:49 UTC](https://forum.rdfzer.com/t/topic/40/553 "2026-01-16T11:49:22Z")

</div>

气泡音

这个功能好，你们能唱歌给我听吗

---

<div class="post-metadata">

作者： ![gggggg](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/gggggg/32/32012_2.png) [@gggggg](https://forum.rdfzer.com/u/gggggg)\
发布日期： [2026 年1 月 16 日 11:52 UTC](https://forum.rdfzer.com/t/topic/40/554 "2026-01-16T11:52:10Z")

</div>

哇啊啊啊啊啊啊suen啊啊啊啊啊啊啊啊啊啊啊

---

<div class="post-metadata">

作者： ![Draft](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/draft/32/32605_2.png) [@Draft](https://forum.rdfzer.com/u/Draft)\
发布日期： [2026 年1 月 16 日 11:58 UTC](https://forum.rdfzer.com/t/topic/40/555 "2026-01-16T11:58:50Z")

</div>

上课时候声音不是这样的 😾

---

<div class="post-metadata">

作者： ![MengXIN](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/mengxin/32/40462_2.png) [@MengXIN](https://forum.rdfzer.com/u/MengXIN)\
发布日期： [2026 年1 月 16 日 11:59 UTC](https://forum.rdfzer.com/t/topic/40/556 "2026-01-16T11:59:31Z")

</div>

其实还有suen的打招呼，因为说得太快，吧“你好”说成了“喵”

---

<div class="post-metadata">

作者： ![gggggg](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/gggggg/32/32012_2.png) [@gggggg](https://forum.rdfzer.com/u/gggggg)\
发布日期： [2026 年1 月 16 日 11:59 UTC](https://forum.rdfzer.com/t/topic/40/557 "2026-01-16T11:59:52Z")

</div>

这个是只能现场录音还是可以上传音频

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 16 日 12:09 UTC](https://forum.rdfzer.com/t/topic/40/558 "2026-01-16T12:09:04Z")

</div>

都可以。

 ![Screenshot 2026-01-16 at 03.52.30](https://files.rdfzer.com/original/3X/f/e/fea75697f99dcfc6de52e05fd2c241ec7d5648c6.png)  
更方便直接錄當下。

---

<div class="post-metadata">

作者： ![RuletheWaves](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/rulethewaves/32/29332_2.png) [@RuletheWaves](https://forum.rdfzer.com/u/RuletheWaves)\
发布日期： [2026 年1 月 17 日 01:30 UTC](https://forum.rdfzer.com/t/topic/40/559 "2026-01-17T01:30:41Z")

</div>

![Screenshot_20260117_092959_Edge](https://files.rdfzer.com/original/3X/f/d/fd9a8584aee52c70c364d49c3320bf4725387c50.jpeg)

> **[北大附中 - 孙玉磊](https://i.rdfzer.com)**
>
> 北大附中 孙玉磊

滚动有问题导致显示不完全

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 17 日 07:35 UTC](https://forum.rdfzer.com/t/topic/40/560 "2026-01-17T07:35:19Z")

</div>

修完⋯⋯

---

<div class="post-metadata">

作者： ![RuletheWaves](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/rulethewaves/32/29332_2.png) [@RuletheWaves](https://forum.rdfzer.com/u/RuletheWaves)\
发布日期： [2026 年1 月 17 日 08:26 UTC](https://forum.rdfzer.com/t/topic/40/561 "2026-01-17T08:26:50Z")

</div>

![Screenshot_20260117_162620_Edge](https://files.rdfzer.com/original/3X/b/7/b71b75ddf3e312fca2dc30d44111497a8b8cc9d8.jpeg)  
并非，每个栏能滑动了但是网页整体还是有问题

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 17 日 08:56 UTC](https://forum.rdfzer.com/t/topic/40/562 "2026-01-17T08:56:31Z")

</div>

平板適配⋯⋯ DONE⋯⋯

---

<div class="post-metadata">

作者： ![WindWhisper](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/windwhisper/32/39934_2.png) [@WindWhisper](https://forum.rdfzer.com/u/WindWhisper)\
发布日期： [2026 年1 月 17 日 09:05 UTC](https://forum.rdfzer.com/t/topic/40/563 "2026-01-17T09:05:48Z")

</div>

平板的适配搞定了，不容易呀（笑）

---

<div class="post-metadata">

作者： ![cuiboran](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/cuiboran/32/16517_2.png) [@cuiboran](https://forum.rdfzer.com/u/cuiboran)\
发布日期： [2026 年1 月 17 日 09:31 UTC](https://forum.rdfzer.com/t/topic/40/564 "2026-01-17T09:31:44Z")

</div>

有一说一，Suen 的声音真的和那些语音房里的青叔音差不多

配一个头像可以去语音房上课了：

 ![image](https://files.rdfzer.com/original/3X/7/5/7576ed30f0b32f0765ca5929276725ac06a544d8.jpeg)

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 30 日 05:22 UTC](https://forum.rdfzer.com/t/topic/40/565 "2026-01-30T05:22:34Z")

</div>

今天早晨六點多順手更新維護論壇後出現暫短無法登陸， \* **429 Too Many Requests** ，關了 bot 們禁閉。  
中午整理：  
加入前置機保護，解決此後可能的瞬間流量風暴。  
統一了前後機器上傳附件大小為 100M 。  
加入反代風控。

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 30 日 08:27 UTC](https://forum.rdfzer.com/t/topic/40/566 "2026-01-30T08:27:10Z")

</div>

# **Incident Brief: Login/Load Failures & “Storm” Mitigation (Front Proxy + Discourse)**

**Date:** Jan 30, 2026 (UTC / local time mixed in logs)

**Site:** [forum.rdfzer.com](http://forum.rdfzer.com)

**Architecture:** DMIT front proxy (154.17.1.193) → Discourse origin (172.93.160.202)

**Uploads:** Stored on Cloudflare R2 (Discourse S3-compatible), but upload requests still pass through the front proxy.

* * *

## **1) What happened (symptoms)**

- Users (including admin) experienced:
  - Pages “stuck” / incomplete styling
  - Intermittent inability to enter /latest and other pages
  - HTTP **429 Too Many Requests** seen during normal browsing

- It _looked like_ a login problem, but the underlying issue was broader: the site UI and JS/CSS pipeline was breaking under rate limiting.

* * *

## **2) Timeline (high level)**

1. **Morning:** Forum became hard to access; pages partially rendered or froze.
2. **During testing:** Large attachment uploads were attempted from an external IP , triggering retries/refreshes.
3. **Storm effect:** Front proxy rate limiting began throttling essential static assets (CSS/JS), causing the UI to “break” and appear unusable.
4. **Mitigation deployed:** Static assets were exempted from the front proxy’s general rate-limit zone; .map files were disabled (404).
5. **Verification:** Nginx config tested and reloaded; static assets returned 200; .map returned 404; rate-limit errors stopped appearing for those assets.

* * *

## **3) Root cause (confirmed by logs)**

### **Primary cause**

The **front Nginx rate-limit** (limit\_req zone=forum\_general) was applied to location /, so **static resources** (especially /stylesheets/\*.css and related assets) were treated like normal dynamic traffic and got throttled.

### **Evidence**

Front proxy error.log showed entries like:

- limiting requests, excess: … by zone “forum\_general”, request: “GET /stylesheets/…css …”

When critical CSS/JS gets 429’d, Discourse pages render incomplete and users perceive it as “can’t log in / can’t enter the forum”.

### **Trigger**

Large upload attempts (and user retries/refreshes) increased overall request volume. That amplified the chance that static resources got rate-limited and cascaded into widespread “broken UI”.

* * *

## **4) What we changed on the front proxy (DMIT)**

### **Files involved**

- /etc/nginx/sites-enabled/forum.rdfzer.com.conf (vhost)
- /etc/nginx/snippets/forum\_proxy\_common.conf (new)
- /etc/nginx/snippets/forum\_static\_allow.conf (new)

### **Changes made**

1. **Backups created** for the vhost config.
2. Added a shared proxy header snippet (forum\_proxy\_common.conf) to avoid repeating long proxy blocks.
3. Added a **static allowlist snippet** (forum\_static\_allow.conf) that:

- Returns **404 for** \ ***.map** (e.g., common.css.map) to prevent non-essential debug map requests from contributing to storms.
- Creates a **dedicated location** for static directories to bypass forum\_general rate limiting:
  - /stylesheets
  - /theme-javascripts
  - /assets
  - /plugins
  - /fonts
  - /images
  - /svg-icons
  - /user\_avatar

1. Included the static allowlist snippet **early** in the vhost, right after the existing SNI-based protection check.

### **Security note: Anti-reverse-proxy protection preserved**

The existing protection to prevent others proxying the forum behind their own domain remains in place:

- Hostname check ($host) and TLS SNI check ($ssl\_server\_name) returning **444** if not [forum.rdfzer.com](http://forum.rdfzer.com).

* * *

## **5) Verification (post-change)**

- nginx -t succeeded.
- Nginx reload succeeded.
- Test requests:
  - Static CSS returned **200**
  - Emoji/images returned **200**
  - Avatar URLs returned **200**
  - \*.map returned **404**

- Front error log no longer showed limiting requests … zone “forum\_general” for the static paths.

* * *

## **6) What’s “fixed” vs what remains**

### **Fixed / mitigated**

- The “storm” failure mode where CSS/JS gets 429’d and the forum appears broken.
- Reduced blast radius during spikes: UI-critical static resources are no longer punished by the general limiter.

### **Remaining constraint (known)**

- The front proxy has a hard upload body limit (client\_max\_body\_size 100m).Discourse upload settings were aligned to **100MB** to avoid misleading UI prompts and repeated retries.

* * *

## **7) Takeaways / Recommendations**

1. **Never rate-limit static assets the same way as dynamic routes** on a front proxy for Discourse.
2. **Disable**  **.map** (404) at the edge unless you explicitly need sourcemaps in production.
3. Keep **front upload size limits** aligned with Discourse site settings to prevent user retry storms.
4. Keep the **anti-reverse-proxy (Host/SNI 444)** protection enabled to stop third-party domain proxying.

* * *

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年1 月 30 日 08:58 UTC](https://forum.rdfzer.com/t/topic/40/567 "2026-01-30T08:58:06Z")

</div>

![Screenshot 2026-01-30 at 00.57.41](https://files.rdfzer.com/original/3X/8/5/856e316f91fe754c2ad2bc89b1b1a8a025b2fcda.jpeg)  
出獄

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年2 月 12 日 10:07 UTC](https://forum.rdfzer.com/t/topic/40/568 "2026-02-12T10:07:51Z")

</div>

例行版本更新，已完成。

---

<div class="post-metadata">

作者： ![zwjzwj](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/zwjzwj/32/2728_2.png) [@zwjzwj](https://forum.rdfzer.com/u/zwjzwj)\
发布日期： [2026 年2 月 14 日 02:42 UTC](https://forum.rdfzer.com/t/topic/40/569 "2026-02-14T02:42:00Z")

</div>

![IMG_2824](https://files.rdfzer.com/original/3X/3/0/301388a53c9264c705eb64b3f54630170b4dac1d.jpeg)

为什么字突然这么大🙀

---

<div class="post-metadata">

作者： ![080421](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/080421/32/15770_2.png) [@080421](https://forum.rdfzer.com/u/080421)\
发布日期： [2026 年2 月 14 日 04:16 UTC](https://forum.rdfzer.com/t/topic/40/570 "2026-02-14T04:16:57Z")

</div>

![IMG_0553](https://files.rdfzer.com/original/3X/6/4/64edbc47d6f683d3262a135bd6ce02e433ea7a93.jpeg)  
为什么字突然这么小 🙀

---

<div class="post-metadata">

作者： ![suen](https://forum.rdfzer.com/user_avatar/forum.rdfzer.com/suen/32/2665_2.png) [@suen](https://forum.rdfzer.com/u/suen)\
发布日期： [2026 年2 月 27 日 13:43 UTC](https://forum.rdfzer.com/t/topic/40/571 "2026-02-27T13:43:11Z")

</div>

只留 作文AI，其他關小黑屋。  
目的：驅使更多人去Gemini/ChatGPT/Claude，慢慢打造自己個性AI 。  
實測有沒有更多歷史對話的差距已經很大很大了⋯⋯

[上一页](https://forum.rdfzer.com/t/topic/40.md?page=24)

[下一页](https://forum.rdfzer.com/t/topic/40.md?page=26)
