The .NET blog system that optimized for Microsoft Azure. Designed for developers, enabling most common blogging features including posts, comments, categories, archive, tags and pages.
-
It is recommended to use stable code from Release rather than master branch.
-
It is recommended to enable HTTP/2 support on your web server.
This is the way https://edi.wang is deployed, by taking advantage of as many Azure services as possible, the blog can run very fast and secure.
But there is no automated script to deploy it, you need to manually create all the resources and configure them.
Use automated deployment script to get your Moonglade up and running in 10 minutes with minimal Azure components, follow instructions here
Simply go the the root folder of this repo and run:
docker-compose build
docker-compose up
That's it! Now open: Browser: http://localhost:8080
To quickly get it running on a new Linux machine without Docker, follow instructions here. You can watch video tutorial here.
Tools | Alternative |
---|---|
Visual Studio 2022 v17.4+ | Visual Studio Code with .NET 7.0 SDK |
SQL Server 2022 | SQL Server LocalDB, PostgreSQL or MySQL |
Moonglade supports three types of database. You can choose from SQL Server, PostgreSQL or MySQL.
Update your database connection string in appsettings.*.json
"ConnectionStrings": {
"MoongladeDatabase": "Server=(localdb)\\MSSQLLocalDB;Database=Moonglade;Trusted_Connection=True;",
"DatabaseType": "SqlServer"
}
"ConnectionStrings": {
"MoongladeDatabase": "Server=localhost;Port=3306;Database=moonglade;Uid=root;Pwd=******;",
"DatabaseType": "MySql"
}
"ConnectionStrings": {
"MoongladeDatabase": "User ID=****;Password=****;Host=localhost;Port=5432;Database=****;Pooling=true;",
"DatabaseType": "PostgreSql"
}
Build and run ./src/Moonglade.sln
- Admin:
https://localhost:1055/admin
- Default username:
admin
- Default password:
admin123
This section discuss system settings in appsettings.[env].json. For blog settings, please use "/admin/settings" UI.
For production, it is strongly recommended to use Environment Variables over appsetting.json file.
See Wiki document
Set Authentication:Provider
to "Local"
. You can manage accounts in /admin/settings/account
ImageStorage
controls how blog post images are stored.
Azure Blob Storage (Preferred)
You need to create an Azure Blob Storage with container level permission.
{
"Provider": "azurestorage"
"AzureStorageSettings": {
"ConnectionString": "YOUR CONNECTION STRING",
"ContainerName": "YOUR CONTAINER NAME"
}
}
When configured the image storage to use Azure Blob, you can take advantage of CDN for your image resources. Just enable CDN in admin settings, the blog will get images from CDN.
Minio Blob Storage (Free)
You need to hava an Minio Server.
"Provider": "miniostorage"
"MinioStorageSettings": {
"EndPoint": "Minio Server Endpoint(eg:localhost:9600)",
"AccessKey": "Your Access Key",
"SecretKey": "Your Secret Key",
"BucketName": "Your BucketName",
"WithSSL": false
}
Qiniu Blob Storage (Almost free)
You need to hava an Qiniu cloud account, and use Kodo storage service.
"Provider": "qiniustorage"
"QiniuStorageSettings": {
"EndPoint": "Your Custom Domain",
"AccessKey": "Your Access Key",
"SecretKey": "Your Secret Key",
"BucketName": "Your BucketName",
"WithSSL": false
}
You can also choose File System for image storage if you don't have a cloud option.
{
"Provider": "filesystem",
"FileSystemPath": "C:\\UploadedImages"
}
If you need email notification for new comments, new replies and pingbacks, you have to setup the Moonglade.Email Azure Function first, and then enable notification in admin portal.
- RSS
- Atom
- OPML
- Open Search
- Pingback
- Reader View
- FOAF
- RSD
- MetaWeblog (Basic Support)
- Dublin Core Metadata (Basic Support)
- BlogML - Under triage
- APML - Not planned
- Trackback - Not planned
There are a few individuals already setup thier blogs using Moonglade on Azure (Global or China), Alibaba Cloud, Tencent Cloud, etc.
- zchwei
- yycoding
- 51azure
- Zhuangkh
- HueiFeng
- Leslie Wang
- AllenMasters
- Hao's House
- Sascha.Manns
- ็้ซๅณฐๅๅฎข
Just Submit PR or issue if you want your blog to be listed here