imcodes 2026.3.159 → 2026.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,6 +74,37 @@ imcodes bind https://app.im.codes/bind/<api-key>
|
|
|
74
74
|
|
|
75
75
|
This binds your machine, starts the daemon, and registers it as a system service.
|
|
76
76
|
|
|
77
|
+
## Self-Host (One-Click Deploy)
|
|
78
|
+
|
|
79
|
+
Deploy your own IM.codes server with Docker Compose. Includes automatic HTTPS via Caddy and auto-updates via Watchtower.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# 1. Clone and configure
|
|
83
|
+
git clone https://github.com/im4codes/imcodes.git
|
|
84
|
+
cd imcodes
|
|
85
|
+
cp .env.example .env
|
|
86
|
+
|
|
87
|
+
# 2. Edit .env — set your domain and generate secrets
|
|
88
|
+
# DOMAIN=im.example.com
|
|
89
|
+
# POSTGRES_PASSWORD=$(openssl rand -hex 16)
|
|
90
|
+
# JWT_SIGNING_KEY=$(openssl rand -hex 32)
|
|
91
|
+
# BOT_ENCRYPTION_KEY=$(openssl rand -hex 32)
|
|
92
|
+
|
|
93
|
+
# 3. Start
|
|
94
|
+
docker compose up -d
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
That's it. Caddy automatically provisions a Let's Encrypt certificate for your domain. Watchtower checks for new images every 5 minutes and updates automatically.
|
|
98
|
+
|
|
99
|
+
Point your DNS A record to the server IP, then visit `https://your-domain`. Default login: `admin` / password shown in `docker compose logs server` on first run.
|
|
100
|
+
|
|
101
|
+
After logging in, bind your dev machine:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm install -g imcodes
|
|
105
|
+
imcodes bind https://your-domain/bind/<api-key>
|
|
106
|
+
```
|
|
107
|
+
|
|
77
108
|
## Requirements
|
|
78
109
|
|
|
79
110
|
- macOS or Linux (tested on both). Windows users need [WSL](https://learn.microsoft.com/en-us/windows/wsl/) — native Windows is not supported since the project uses tmux to manage agent sessions.
|
package/package.json
CHANGED