mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:58:14 +03:00
url shortener config / grants
This commit is contained in:
@@ -10,6 +10,29 @@
|
||||
| FE TLS cert | `/etc/letsencrypt/live/s.f0xx.org/` |
|
||||
| Git remote | `git://f0xx.org/androicast_project/url-shortener` |
|
||||
| MariaDB schema `url_shortener` | `sql/schema.mariadb.sql` |
|
||||
| DB app user | **`androidcast`** (shared with crash reporter; same password as `androidcast_crashes` in crashes `config.php`) |
|
||||
|
||||
## MariaDB (BE)
|
||||
|
||||
**Database:** `url_shortener`
|
||||
**App user:** `androidcast` @ `localhost` + `127.0.0.1` — **same password** as crash reporter (`examples/crash_reporter/backend/config/config.php` → `db.mysql.password`).
|
||||
|
||||
```bash
|
||||
# 1) Schema (root)
|
||||
mysql -u root -p < sql/schema.mariadb.sql
|
||||
|
||||
# 2) Grants for existing androidcast user (root) — skip if already granted
|
||||
./scripts/init-mariadb-grants.sh
|
||||
|
||||
# 3) Config on BE
|
||||
cp config/config.example.php config/config.php
|
||||
# edit password to match crashes config (do not commit config.php)
|
||||
|
||||
# 4) Smoke
|
||||
mysql -u androidcast -p -h 127.0.0.1 url_shortener -e 'SHOW TABLES;'
|
||||
```
|
||||
|
||||
Template: [config/config.example.php](config/config.example.php)
|
||||
|
||||
## FE (Gentoo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user