Parse markdown document to html in FastCGI supported web server like nginx
.
-
⬇️ Clone this repository from github.
-
📀 Install golang compiler
1.11+
. -
🔨 Build it!
go build main.go
-
⏩ Run it!
./main [-l address]
Example:
./main ./main -l 127.0.0.1:9001 ./main --listen 127.0.0.1:9002 ./main -l unix://var/run/mds.sock
If your command arguments miss
-l
,it will listen at127.0.0.1:9001
You can use
supervisor
to hold this service. -
🛠 Configure your nginx.
server { # your configurations. location ~ \.md$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9001; } }
-
🌊 Visit your website.