fix readme

This commit is contained in:
2025-06-14 01:00:02 +09:00
parent cef0675a88
commit 5c13dc0a1c
3 changed files with 16 additions and 14 deletions

View File

@ -13,14 +13,14 @@ cd log
# 2. Start development services # 2. Start development services
./run.zsh serve # Blog development server ./run.zsh serve # Blog development server
./run.zsh c # Cloudflare tunnel (log.syui.ai) ./run.zsh c # Cloudflare tunnel (example.com)
./run.zsh o # OAuth web server ./run.zsh o # OAuth web server
./run.zsh co # Comment system monitor ./run.zsh co # Comment system monitor
# 3. Start Ollama (for Ask AI) # 3. Start Ollama (for Ask AI)
brew install ollama brew install ollama
ollama pull gemma2:2b ollama pull gemma2:2b
OLLAMA_ORIGINS="https://log.syui.ai" ollama serve OLLAMA_ORIGINS="https://example.com" ollama serve
``` ```
### Production Deployment ### Production Deployment
@ -43,9 +43,9 @@ git push origin main
```bash ```bash
# 1. OAuth Client Setup (oauth/client-metadata.json) # 1. OAuth Client Setup (oauth/client-metadata.json)
{ {
"client_id": "https://log.syui.ai/client-metadata.json", "client_id": "https://example.com/client-metadata.json",
"client_name": "ai.log Blog System", "client_name": "ai.log Blog System",
"redirect_uris": ["https://log.syui.ai/oauth/callback"], "redirect_uris": ["https://example.com/oauth/callback"],
"scope": "atproto", "scope": "atproto",
"grant_types": ["authorization_code", "refresh_token"], "grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"], "response_types": ["code"],
@ -82,8 +82,8 @@ git push origin main
| Command | Description | | Command | Description |
|---------|-------------| |---------|-------------|
| `./run.zsh c` | Enable Cloudflare tunnel (log.syui.ai) for OAuth | | `./run.zsh c` | Enable Cloudflare tunnel (example.com) for OAuth |
| `./run.zsh o` | Start OAuth web server (port:4173 = log.syui.ai) | | `./run.zsh o` | Start OAuth web server (port:4173 = example.com) |
| `./run.zsh co` | Start comment system (ATProto stream monitor) | | `./run.zsh co` | Start comment system (ATProto stream monitor) |
## 🏗️ Architecture (Pure Rust + HTML + JS) ## 🏗️ Architecture (Pure Rust + HTML + JS)
@ -148,7 +148,7 @@ brew install ollama
ollama pull gemma2:2b ollama pull gemma2:2b
# 2. CORS設定で起動 # 2. CORS設定で起動
OLLAMA_ORIGINS="https://log.syui.ai" ollama serve OLLAMA_ORIGINS="https://example.com" ollama serve
# 3. AI DID設定 (my-blog/templates/base.html) # 3. AI DID設定 (my-blog/templates/base.html)
const aiConfig = { const aiConfig = {
@ -605,6 +605,12 @@ translation = true
## systemd ## systemd
```sh
$ sudo vim /usr/lib/systemd/system/ollama.service
[Service]
Environment="OLLAMA_ORIGINS=https://example.com"
```
```sh ```sh
# ファイルをsystemdディレクトリにコピー # ファイルをsystemdディレクトリにコピー
sudo cp ./systemd/system/ailog-stream.service /etc/systemd/system/ sudo cp ./systemd/system/ailog-stream.service /etc/systemd/system/

View File

@ -6,11 +6,7 @@ tags: ["blog", "rust", "mcp", "atp"]
language: ["ja", "en"] language: ["ja", "en"]
--- ---
rustで静的サイトジェネレータを作ることにしました。[ailog](https://git.syui.ai/ai/log)といいます。`hugo`からの移行になります。 rustで静的サイトジェネレータを作ました。[ailog](https://git.syui.ai/ai/log)といいます。`hugo`からの移行になります。
ブログを書く環境もこれから変わってくると思っていて、例えば、`docs`, `readme`, `blog`などはAIが生成、または支援することになるだろうと予測しています。langの自動生成もAIが担当することになるでしょう。
これは、音声に限らず、プログラミング言語から、osなど、様々なtranslateがAIの自動生成になるかもしれません。
`ailog`は、最初にatproto-comment-system(oauth)とask-AIというAI機能をつけました。 `ailog`は、最初にatproto-comment-system(oauth)とask-AIというAI機能をつけました。

View File

@ -1052,8 +1052,8 @@ body {
} }
.chat-message.ai-message.comment-style { .chat-message.ai-message.comment-style {
border-left: 4px solid var(--light-gray); border-left: 4px solid #fff700;
border: 2px solid var(--white); /* border: 2px solid #3F51B5; */
background: #faf8ff; background: #faf8ff;
} }