Waline Comment System Configuration
🕒 Reading time: 2 min📝 Words: 242👀 Views: Loading...
comment.yml — Comment System
File: stalux/config/comment.yml
id: commentenabled: false # Master switch: enable comments site-widewaline: serverURL: https://walines.xingwangzhe.fun # Waline server address lang: zh-CN # Waline UI language login: "force" # "enable" | "disable" | "force" dark: true # Dark mode support reaction: false # Reaction feature meta: [nick, mail, link] # Required user fields requiredMeta: [] # Mandatory fields commentSorting: "latest" # "latest" | "oldest" | "hottest" wordLimit: 200 # Max comment length pageSize: 10 # Comments per page recaptchaV3Key: "" # reCAPTCHA v3 site key turnstileKey: "" # Cloudflare Turnstile keyKey Fields
| Field | Description |
|---|---|
enabled |
Global toggle. Set to true to enable comments on all pages |
waline.serverURL |
Required for Waline to work. Points to your Waline server |
waline.login |
"enable" — allow anyone; "force" — require login; "disable" — no login needed |
waline.meta |
User info fields collected from commenters |
waline.requiredMeta |
Fields that must be filled in (subset of meta) |
Getting Started
- Deploy a Waline server (see Waline docs)
- Set
enabled: trueand fill inwaline.serverURL - Adjust other settings as needed
- Test by leaving a comment on any post
Common Modifications
| Operation | How |
|---|---|
| Toggle comments on/off | Change enabled |
| Switch Waline server | Update serverURL |
| Enable anti-spam | Set recaptchaV3Key or turnstileKey |
| Change sort order | Set commentSorting to "latest", "oldest", or "hottest" |
Waline Comment System Configuration
Author: xingwangzhe
Article link: https://stalux.needhelp.icu/posts/f4442947/
This article is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.