Skip to content
المشاريع

حول

Blog system of https://edi.wang

البيانات والتحليلات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
؜-٢
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Moonglade Blog

Moonglade is a self-hosted personal blog built with ASP.NET Core Razor Pages on .NET 10. It supports PostgreSQL (default) and SQL Server.

  • Publish HTML or Markdown posts with Mermaid diagrams, scheduled publishing, categories, and tags. Create standalone pages.
  • Manage comments, themes, menus, widgets, and images from a desktop browser at 1440 CSS pixels or wider.
  • Offer RSS and Atom feeds, Webmentions, and six interface languages.

Markdown post colors

Use ::important text::{.post-red} to color an inline phrase without embedding HTML, or [link](https://example.com){.post-blue} to color a link. The text palette is .post-red, .post-orange, .post-gold, .post-green, and .post-blue, plus .post-muted for secondary text. Use .post-highlight or .post-highlight-red for a background. These extensions are available in posts, post preview, and full feeds, but not in comments or standard Markdown readers.

Quick Start with Docker

Copy .env.example to .env, set POSTGRES_PASSWORD, and start Compose from the repository root. Environment template

docker compose up -d

Open http://localhost:8080 for first-run setup. Compose starts Moonglade and PostgreSQL. Keep the database and both image volumes when replacing containers.

First Run

Restrict access until setup is complete. Anyone who can reach an uninitialized site can claim it at /auth/setup-account. Set the owner's email and password, then verify the authenticator code when TOTP is required. Setup behavior and password requirements

Deployment

This blogging system must not be used to serve users in mainland China or to publish content prohibited by Chinese law or any applicable regulations.

Run one Moonglade application process per blog database. Stop the running process before starting its replacement. Deploy a published release at the URL root with HTTPS and HTTP/2. Behind a reverse proxy, configure ForwardedHeaders:KnownProxies with the trusted proxy addresses. Use separate persistent paths for public images and private originals. Published releases · Image storage

Database Upgrades

Fresh installations create and seed the database automatically. For upgrades, stop Moonglade, back up the database, verify the applicable provider scripts on a restored copy, then apply them before starting the new version. For rollback, restore the backup and its matching application version together. Script order and recovery

Configuration

Set host options in appsettings.json or with environment variables (: becomes __). Manage blog preferences at /admin/settings. Host settings · Operations guide

Authentication

The owner and up to two collaborators sign in with email and password. TOTP is required by default. The owner manages collaborators and optional OpenID Connect sign-in at /admin/account. Account configuration and permissions

Development

Install the .NET 10 SDK and start PostgreSQL or SQL Server. The solution is src/Moonglade.slnx. Set ConnectionStrings:DatabaseProvider to PostgreSql or SqlServer and set ConnectionStrings:MoongladeDatabase or the ConnectionStrings__MoongladeDatabase environment variable.

Build & Run

dotnet run --project src/Moonglade.Web/Moonglade.Web.csproj

In PowerShell, you can also run ./start.ps1. Open https://localhost:10210. PowerShell launcher · Test commands · Engineering reference

License

GPL-3.0

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…